5
It is absolutely annoying and opposite to any other language that you cannot catch exceptions in a commit block .. it will always go to the first catch, outside the commit block.

But what we do is process multi level XML. which contains multiple indented objects. And on level 4 an error is thrown. Per level we use setprefix(entityName) .. but that prefix is never shown in the infolog bcz there is an error raised but caught far outside the setprefix and thus the prefix is not visible in the infolog and thus you have no idea of which object inside the xml (which entity) the error comes from.

I feel exception handling in AX must be have the same as in c#. You must be able to catch exceptions on ANY level and have the control over rethrow or not. Same as in any other programming language.
Category: Development
STATUS DETAILS
Needs Votes