Thursday 16 June 2011

Microsoft Dynamics AX - Where did that Error/Warning/Info come from?

I recently had difficulty with an automated process (via the business connector) throwing a warning from deep within AX! I was working on Axapta 3.0 but I'm sure this has carried through to more recent versions.

Here are my steps to finding the source of the error;

Open the AOT
Browse to Classes
Open the Info class
Place a breakpoint on the Exception Method
Run your code (in my case this was automated so I created a test job)
The breakpoint is triggered and the debugger opens
The "Context" drop down shows the call stack.

You can use this to trace all the way back to where your code is triggering the error, warning or info.