Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

XML for Voice of the Customer is invalid.

Posted on by Microsoft Employee

Every time I paste in the code I've been given in the XML to import section of my CRM opportunity, it gives this error.

This was due on Monday, I need answers. Thank you!

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 2, position 235.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
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 System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at Microsoft.Crm.Surveys.Plugins.ImportPlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>2512aa15-6e2d-45e7-9fd6-2cf938bfa393</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>System.Xml.XmlException: '&lt;', hexadecimal value 0x3C, is an invalid attribute character. Line 2, position 235.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
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 System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at Microsoft.Crm.Surveys.Plugins.ImportPlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)</Message>
<Timestamp>2017-05-10T15:10:30.7739846Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[Microsoft.Crm.Surveys.Plugins.Merged: Microsoft.Crm.Surveys.Plugins.ImportPlugin]
[04319517-4d40-e211-8512-00155d230e13: Microsoft.Crm.Surveys.Plugins.ImportPlugin: Create of msdyn_import]
Exception: System.Xml.XmlException: '&lt;', hexadecimal value 0x3C, is an invalid attribute character. Line 2, position 235.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
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 System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at Microsoft.Crm.Surveys.Plugins.ImportPlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)

</TraceText>
</OrganizationServiceFault>

*This post is locked for comments

  • Elowy GrootCRM Profile Picture
    Elowy GrootCRM 491 on at
    RE: XML for Voice of the Customer is invalid.

    Hi Shawn,

    Do you work in a multi-langual environment? I found out that using HTML tags in the text of questions is converted wrongly to the translated XML. All HTML commands are converted to, for example the less then sign becomes  &lt; 

    Good luck!

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans