Export (0) Print
Expand All
Expand Minimize
2 out of 5 rated this helpful - Rate this topic

Compile application [AX 2012]

Updated: December 10, 2013

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

When the Microsoft Dynamics AX application is compiled, its source code is translated into a machine-readable format that can be interpreted by the Microsoft Dynamics AX server and clients. You compile the application to ensure that all object references are updated and the application is ready to use.

Compile the application by using the Compile application task in the Initialization Checklist or the upgrade checklists. If you have access to the Developer Workspace, you can also compile the application from the Application Object Tree (AOT). For more information, see Code Compiler.


As of cumulative update 7 for Microsoft Dynamics AX 2012 R2, you also have the option of compiling with AxBuild.exe, a command-line tool that supports hyper-threading and can deliver substantial performance gains. For more information, see AxBuild.exe for Parallel Compile on AOS of X++ to p-code.

This process must be completed if there is more than one layer in your system. It is also necessary to compile the application during new installations with a service pack because the references from the standard application must be updated.

If you installed a model other than the Foundation models, you must complete this task. If you do not complete this task, you will encounter errors when you run the Synchronize database task.

This task is optional in the upgrade checklists. However, to prevent unexpected program behavior, we advise you to compile all of your code after code upgrade.

The .NET Business Connector must be installed on the computer where you run the Compile application task.


Depending on your hardware, compilation can take an hour or more. It is critical to let compilation run until it is complete.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.