Jul 12, 2015

"CIL generation: The given key was not present in the dictionary"

If we get error on CIL generation like

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

Solution is simple ..

Check the log file of CIL which located at the below path

"C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL\Dynamics.Ax.Application.dll.log"

In log we can see the AOT objects those causing to the CIL error .

Find the objects in AOT and compile , resolve the compilation errors . Make sure there are no errors and regenerate the CIL .

Problem get resolved....enjoy.........  :)