How Exception handling Try/Catch statements work in AX

How Exception handling Try/Catch statements work in AX

MCP · Azure DevOpsYour delivery board, readable by an agentMCP · DataverseOne consent, and the data layer opensMCP · Dynamics 365 F&OConnecting F&O to an agent Microsoft hasn’t documented
Archive recovery note: the supplied Blogspot backup did not contain a separate saved page for this older entry. The text available in its archive/listing capture has been preserved and flagged for a later completeness check.
A sample code for Try/Catch statements in AX under run method in a class. public void run() {     #OCCRetryCount         try     {             }     catch (Exception::Deadlock)     {         retry ;     }     catch (Exception::UpdateConflict)     {         if (appl.ttsLevel() == 0 )         {             if (xSession::currentRetryCount() >= #RetryNum)             {                 throw Exception::UpdateConflictNotRecovered;        ...
Previous article← Signing limits for Business Documents in AX 2012
Discussion

Ask a question or leave feedback

This is a review interaction. The WordPress version will store, thread and moderate comments.

Thanks — submitted for moderation in this review.
Search the whole site · Ctrl/⌘ + K