Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

CIL Generation Errors

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am running AX 2012 R2 and I have done full compile for initialization checklist. I ran into this error on full CIL. Any idea or comment on what could be the issue here ? Thanks in advance.

System.OperationCanceledException: AIF service group not activated.  Service group: OMLegalEntityServiceGroup.  Error: The specified service type 'Microsoft.Dynamics.Ax.Services.OMLegalEntityServiceGroup' could not be found in the service assembly. ---> System.ArgumentNullException: The specified service type 'Microsoft.Dynamics.Ax.Services.OMLegalEntityServiceGroup' could not be found in the service assembly.

   at Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices(String serviceGroupName)

   --- End of inner exception stack trace ---

   at Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices(String serviceGroupName)

   at Microsoft.Dynamics.Ax.Services.AifHelper.PublishAllServiceGroups(Dictionary`2 faultedServices)

*This post is locked for comments

  • BorisD Profile Picture
    BorisD 2,826 on at
    RE: CIL Generation Errors

    Hello Jack,

    If  Khurshid Wali answered your question, please mark it as answered so that others can also easily find this as a solution in the future.

    Thank you,

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CIL Generation Errors

    Thanks.. it works :)

  • Suggested answer
    Khurshid Wali Profile Picture
    Khurshid Wali 926 on at
    RE: CIL Generation Errors

    Hello Jack Teh,

    These type of errors are generally due to error in your custom code.

    1. Check the CIL log file, generally located at "C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL\Dynamics.Ax.Application.dll.log"

    2. You will find the AOT object for which the CIL generator found the error.

    3. Compile that object, fix the error, or delete (if needed) and then regenerate the IL.

    :)

  • Khurshid Wali Profile Picture
    Khurshid Wali 926 on at
    RE: CIL Generation Errors

    Hello Jack Teh,

    These type of errors are generally due to error in your custom code.

    1. Check the CIL log file, generally located at "C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL\Dynamics.Ax.Application.dll.log"

    2. You will find the AOT object for which the CIL generator found the error.

    3. Compile that object, fix the error, or delete (if needed) and then regenerate the IL.

    :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans