Compile the application

***[Preliminary release. Content in this topic that applies to Microsoft Dynamics AX 2012 R2 is preliminary and subject to change.]

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

Compile the application to ensure that all object references are updated and the application is ready to use. When the application is compiled, the application source code is translated into binary code that can be interpreted by the kernel.

Compile the application by using the Compile application task in the Initialization Checklist. 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.

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.

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

Important

Depending on your hardware, the compilation can take an hour or more to finish. Also, it is critical that the compilation runs until it is finished.