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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

The XML passed to the platform is not well-formed XML

(0) ShareShare
ReportReport
Posted on by 202

Hello Every one .

i have below fields in Opportunities entity 

Product Group 

Product Sub Group  then 

Product 

first we enter Product group and Product Sub group then Product  BASED ON FILTERED.

Example: 

 

Total We have 10 product group like AAA, BBB, CCC, DDD ,EEE, FFF, and SO on.

we take one Product group Example- AAA ( This AAA (Product Group) have 20 Product Sub group like ABC, BCD, CDE, CDE, BAC, and so on.....

we take one Product Sub Group Example- ABC ( This ABC( Product Sub group) have 5 Product  like XXX1, YYY2, ZZZ3, TTT4 and Son on....

then 

final entered any one Product .     This Is actually process goes on and working fine ..

But Here is my Problem .................out of all this there is one example for my issue ..below..

Out of all this process ....there is  one Product sub group after selecting this , if i m going to select the Product then following error m getting  ....

Invalid XML

The XML passed to the platform is not well-formed XML. If you contact support, please provide the technical details.

Downloaded log file---

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: Invalid XML.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>5658509b-a94d-4d9b-9677-445c50799477</ActivityId>
<ErrorCode>-2147220991</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Invalid XML.</Message>
<Timestamp>2019-03-15T11:37:44.9559823Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>5658509b-a94d-4d9b-9677-445c50799477</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Xml.XmlException: An error occurred while parsing EntityName. Line 1, position 193.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32&amp; charRefEndPos)
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.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at Microsoft.Crm.Platform.Server.Utility.XmlHelper.LoadXmlInfo(String xmlInfo)
at Microsoft.Crm.Query.EntityExpression.ExtractPlatformName(String fetchXml, XElement element): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E7D413C1</Message>
<Timestamp>2019-03-15T11:37:44.9559823Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Can any one help me please , whats error in this ....

Thanks 

@Amit

 

 

 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    naZir Profile Picture
    850 on at

    You can use XRM tool box and check the XML file's format is ok or not.

  • Suggested answer
    Dynamics Objects 365 Profile Picture
    550 on at

    If I understood correct , this is your problem -->

    Scenario when error is thrown  : you select Product Group--> Product Sub Group --> Product --> No Error ?

    Scenario when error is not thrown  :  Product Sub Group--> Product --> Error thrown ?? ( No Product Group Selected here?)

    If the above is true, then I assume you have custom JS code written on preSearch event -- addPresearch : https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/controls/addpresearch

    That JS code is creating some filter conditions which is not correct.

    If this is case, then please  share your code and we can move forward from there.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans