SysAutoRun.execCompileApplication Method [AX 2012]

Compiles all the Microsoft Dynamics AX application or a specified section of the Application Object Tree (AOT).


protected boolean execCompileApplication(XmlNode _command)

Run On



  • _command
    Type: XmlNode Class
    The XML node to get the value from.

Return Value

Type: boolean
true if execution is successful; otherwise, false.


The execCompileApplication method is called when the <CompileApplication> tag is used in the configuration file when Microsoft Dynamics AX is started. For more information, see the SysAutoRun class.

Execution of this method is controlled by the SysAutoRun.execCommand method.

If the path of a node in the AOT is supplied in the configuration file, only that section of the AOT is compiled. You can also enable or disable an update of the cross-references during compilation.

If the application is compiled, execCompileApplication uses the SysCompileAll.compile method. Otherwise, the TreeNode.AOTCompile method is used.

The <CompileApplication> tag has the following attributes:

  • node, Specifies the AOT node to compile. If node is not specified, the whole application is compiled.

  • crossReference, Specifies whether cross-references should be updated.


The following example shows a possible use of the <CompileApplication> tag in the configuration file. The example compiles the Classes node in the AOT, and then updates cross-references.

<CompileApplication node="\Classes" crossReference="true" />

See Also


SysAutoRun Class