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 CRM (Archived)

XML for Voice of the Customer is invalid.

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Elowy GrootCRM Profile Picture
    54 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

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 CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans