web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

CIL generation: An error occurred while parsing EntityName

(0) ShareShare
ReportReport
Posted on by 1,606

Hi,

I was doing Full CIL Generation but before doing it, I deleted all the files on the XppIL folder. After full CIL generation, I got this error: "CIL generation: An error occurred while parsing EntityName. Line 106872,  position 308."

Any ideas how to resolve this?

Thanks,

Chester

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Review the last CIL Generation log

    Go to Dynamics AX Developer workspace > Build > Show Last CIL Generation log

    I believe you can find more details about the error.

    Please verify and update us with your findings

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    Hi Nitesh,

    The log says:

    System.Xml.XmlException: An error occurred while parsing EntityName. Line 106872, position 308.

      at System.Xml.XmlTextReaderImpl.Throw(Exception e)

      at System.Xml.XmlTextReaderImpl.ParseEntityName()

      at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)

      at System.Xml.XmlTextReaderImpl.ParseAttributes()

      at System.Xml.XmlTextReaderImpl.ParseElement()

      at System.Xml.XmlTextReaderImpl.ParseElementContent()

      at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)

      at System.Xml.XmlLoader.ReadCurrentNode(XmlDocument doc, XmlReader reader)

      at System.Xml.XmlDocument.ReadNode(XmlReader reader)

      at Microsoft.Dynamics.Ax.Xpp.ILGenerator.GenerateXppModule()

    But I really don't understand the error. how do i fix this error? Thanks!

  • Community Member Profile Picture
    on at

    can you please confirm that you had full compilation and you did not had any compilation error

    If no compilation error were there then please try to refresh the caches and restart the AOS.

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    Hi Nitesh,

                      I haven't tried it yet. I will try to compile it today. But what if there is no error upon compilation what should i do? And if there is? Thanks

  • Community Member Profile Picture
    on at

    I hope full compilation will help.

    if there is any error try to fix it.

    If there is no error try to refresh the caches and restart the AOS.

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    Okay thanks. Will update you about this. Thanks for the help

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    I tried refreshing the caches but nothing happened. Error still occurs during Full CIL compilation

  • Martin Dráb Profile Picture
    239,684 Most Valuable Professional on at

    Can you confirm that you compiled X++ for the whole application and didn't get any errors?

    If you still can't find any solution and/or you're interested in inner workings, you can actually debug the process of generating CIL. You'll need a CIL decompiler such as .NET Reflector. (Also see this thread, where we discussed something similar.)

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    Hi Martin,

    Yes, I compiled the whole MS AX Application. I also tried the steps on this link:

    community.dynamics.com/.../error-the-cil-generator-found-errors-and-could-not-save-the-new-assembly.aspx

    Okay thanks. I'll read the link.

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    Hi Martin,

                     I downloaded and installed redgate but how do i use it? i don't know where to start and im not familiar with the software. Most of people using it are using C#/MS Visual studio. how about in ax? 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans