Dynamics AX 2012 Error CIL Generation
I got this error on Dynamics AX 2012: "AX 2012 error CIL generation: The given key was not present in the dictionary." What is it and how I can resolve it?
I got this error on Dynamics AX 2012: "AX 2012 error CIL generation: The given key was not present in the dictionary." What is it and how I can resolve it?
This error has a very lengthy solution but you have to be patient and do the following things.
This error occurred because no referenced element in the Application Object Tree (AOT) is found. For instance, you will create CIL Code for a method that is referenced in a class classStr() but this class is not existing in the AOT.
Because the dictionary information is not updated, it seems that you just have to update the dictionary through Application Object Server service restart, or through compilation.
If errors occurred in the compilation, the code must be fixed first.