AX 2012 - Command prompt compilation / AxBuild.exe for Parallel Compile on AOS of X++ to P-code / Parallel Compilation

Hello AX Technical,

In this article, we will talk about parallel compilation with benefit of performance gain. Here, we need to understand that when we do parallel compilation it will take less time than compiling on the client.

How to do parallel compilation:

1) Open cmd/command prompt and run as administrator.
2) Copy and paste, cd C:\Program Files\Microsoft Dynamics AX\60\Server\AX2012R2_MPG_LIVE\bin and press enter.

Note: cd* = Change drive for the directory where AX server is installed.
AX2012R2_MPG_LIVE is my AX server installed directory name, you can choose yours.

3) Now, copy and paste this, axbuild.exe xppcompileall /s=01 /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin"

Note: Here, s=01 means server instance one, you can have multiple instance for your AX server. You can check this in Microsoft Dynamics AX 2012 Server Configuration tool, it looks like below:



4) Press enter when you want to do compilation.

Note: Suppose, you have another instance then run the 3rd step like below:

axbuild.exe xppcompileall /s=02 /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin"

Note: Check log file for compilation error once the compilation done at C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Log directory.

====================================================================
How to change the Drive using command prompt.
C:\Windows\system32>D:

Note: Type the drive letter with Colon (:) simply to switch the directory in command prompt.


Author:
Chirag Gupta
Microsoft Dynamics 365 AX Technical Consultant at IBM Bangalore

Date:
5-Sep-2019

Happy Learning !!

Comments

Post a Comment

Popular posts from this blog

[Solved] : Error: String or binary data would be truncated. Cannot execute a data definition language command on Vendor (VendLedgerReconciliationTmp)

AX 2012 - How to send SSRS report in email as an attachment using X++

AX 2012 - How to stop AOS when services got stuck at stopping status

AX 2012 - How to make a form field mandatory

Error: There was no endpoint listening at net.tcp://your_server_name:8201/Dynamics AX/Services…

Fetch vendor address using X++ in AX 2012

AX 2012 - How to print current date and time on SSRS Report

[Error] - Error in unit of amount in currency KES. Must be rounded to 0.01 | The unit of 37.563.5343100000000000 KES being posted to account 32710001-- is outside the current penny rounding threshold | Posting has been canceled

[Solved] : AX 2012 - No connection could be made because the target machine actively refused it 192.168.10.249:8201