Friday, December 7, 2018

AX 2012 - Another instance of CIL generation is already in progress. Please wait for the operation to complete before retrying.

Some times when multiple developers work on same server they encounter this error when they try to run incremental compile, "Another instance of CIL generation is already in progress. Please wait for the operation to complete before retrying.".


This errors occurs when previously compile is not properly or not completed. It can be resolved by executing following queries directly in Sql Server Microsoft Dynamics AX database.


 select * from SYSLASTVALUE where ELEMENTNAME = 'CIL Generation'  

This will give you the record for CIL generation , after confirming that record exists delete all the records.


 delete from SYSLASTVALUE where ELEMENTNAME = 'CIL Generation'