السبت، 15 أكتوبر 2016

AX 2012: cil generation the given key was not present in the dictionary

When i try to generate incremental CIL i face this error
"cil generation the given key was not present in the dictionary"


To fix this error you should check the CIL log file, it is located at "C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL\Dynamics.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.