web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: CIL generation: An error occurred while parsing EntityName

    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
    RE: CIL generation: An error occurred while parsing EntityName

    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
    RE: CIL generation: An error occurred while parsing EntityName

    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
    RE: CIL generation: An error occurred while parsing EntityName

    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
    RE: CIL generation: An error occurred while parsing EntityName

    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
    RE: CIL generation: An error occurred while parsing EntityName

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

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at
    RE: CIL generation: An error occurred while parsing EntityName

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

  • Martin Dráb Profile Picture
    236,570 Most Valuable Professional on at
    RE: CIL generation: An error occurred while parsing EntityName

    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
    RE: CIL generation: An error occurred while parsing EntityName

    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
    RE: CIL generation: An error occurred while parsing EntityName

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans