Wednesday, 6 May 2015

Finding X++ compile errors from CIL compile log

Every once in a while you will get some strange errors in your code - in the pre-2012 R3/R2 releases of AX without the axbuild command, doing a full X++ compile is quite time consuming.

As known, without an error-free X++ compile, the CIL compile will fail, so how can developers easily find any X++ errors if the CIL compile fails? Sure, do the full X++ compile, but wait, there is more.

A quick way to find X++ errors after an unsuccessful fuld CIL generation is to look in the CIL generation log.

The log can be found on the AOS-server in the relevant AOS-instance's program files, e.g.

"C:\Program Files\Microsoft Dynamics AX\60\Server\[Instance name]\bin\XppIL\Dynamics.Ax.Application.dll.log"

You want the log to look like this

No comments: