AX 2012 - Compile and compile forward

Hi Folks,

Today, in this post we will talk about very interesting topic: Compile and compile forward.

Well, compilation is a process which converts X++ Code into P-Code. Compilation mostly used when there are stack trace errors and AX crash because of it.

Difference between compile and compile forward:

Compile:

Compilation can be done for all the objects in the AOT. We can do the compilation in 6 ways which are following:
1) Individual objects compilation: (Select the object, right click and choose compile)


2. Group objects compilation: (Select the objects group, right click and choose compile)


3. Entire application compilation from the AOT (Application object tree): (Right click on the AOT and choose compile)


4. Entire application compilation from the front end. (Go to System administration/Area Page/Periodic and click on compile application)


5. Parallel compilation using command prompt. To know more please click here

Compile forward:

Compile forward is used when there are inheritance applicable, means that when one object is extending another object then compile forward is used.

Note: Compile forward is used for classes in AX 2012. To do compile forward right click on object (classes) then click on Add-Ins and choose compile forward like below image.


We hope you understand the difference between compile and compile forward, comment below if this article helpful for you...

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

Date:
18-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 - Command prompt compilation / AxBuild.exe for Parallel Compile on AOS of X++ to P-code / Parallel Compilation

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

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

[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