Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by 190

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

  • Suggested answer
    RE: The XML passed to the platform is not well-formed XML

    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.

  • Suggested answer
    naZir Profile Picture
    naZir 850 on at
    RE: The XML passed to the platform is not well-formed XML

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans