Monday, October 28, 2013

CIL Error and Solution in Dynamic AX 2012

CIL generation: Value cannot be null. Parameter name: parameterTypes
  • If that syntax you have, and you already fix it the object in AOT, but the error still same you must doFull Compile AOT (this is too much consuming time :( ) 

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

when you have the syntax above please do following step :
  1. Increment CIL (this is less consuming time :D )
  2. Full Compile AOT (this is too much consuming time :( )
  • with this step number one, you will find an error, and then you can fix it the error, and try increment CIL again
  • but if the error still raise you can find the log file in C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL and it is called Dynamics.Ax.Application.dll (do compiling object in the log file, and try to fix the error on it. and start CIL Increment again. source link is : http://axfaq.blogspot.ro/2012/07/log-files-ax-2012-different-log-files.html
 In my experience this will happen when you have cripple method, function or object in AOT. for mine if above step does'nt work. i willl do following step :

  • Just export the object that maybe contain the error, my favorite is class, export with option layer on it. Open the xpo with some text editor, and find the object in AOT and compile it, and fix it when the error raise it, and do increment CIL again.

READ MORE - CIL Error and Solution in Dynamic AX 2012