Menu Close

AX2012 : CIL generation error : The given key was not present in the dictionary.

Recently I faced this error when generating incremental IL 
“CIL generation: The given key was not present in the dictionary.”

The quick way to fix this is to check the CIL log file, generally located at “C:Program FilesMicrosoft Dynamics AX60ServerMicrosoftDynamicsAXbinXppILDynamics.Ax.Application.dll.log”

Here you will find the AOT object for which the CIL generator found the error. Compile that object, fix the error and then regenerate the IL. 

Before generating IL it is good practise to make sure that there are no compilation errors in the code. 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.