
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: '<', 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: '<', 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)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 <
Good luck!