Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Error when mapping dynamic fields in a workflow

Posted on by 60

Hi

I have 2 custom entities which are very similar in a Dynamics 365 v9 trial.  The trial also include PSA and Field Service. 

I have created a workflow which is triggered when a field changes in entity 1.  The workflow will create a new record for entity 2 and copy fields from entity 1 to entity 2.

This works with the exception of 1 field.  The problematic field is a global option set.

I can add a dynamic value to the option set in the workflow editor but when I click save and close, i get the following error.  Please can I have some help resolving this?

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Xml.XmlException: Name cannot begin with the '>' character, hexadecimal value 0x3E. Line 1, position 9248.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(String xml)
at Microsoft.Crm.Application.WebServices.WorkflowWebService.UpdateCreateEntityStep(String activityId, String entityId, String createXml, String descriptionXml, String parentStepId, String rendererTypeCode): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #F4F4527EDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>0ac7c254-8cfd-4637-b5cc-4c36d3a139ea</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Xml.XmlException: Name cannot begin with the '&gt;' character, hexadecimal value 0x3E. Line 1, position 9248.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32&amp; colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(XmlReader reader)
at Microsoft.Crm.SharedUtil.CreateXmlDocument(String xml)
at Microsoft.Crm.Application.WebServices.WorkflowWebService.UpdateCreateEntityStep(String activityId, String entityId, String createXml, String descriptionXml, String parentStepId, String rendererTypeCode): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #F4F4527E</Message>
<Timestamp>2017-12-20T17:47:32.3532668Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

*This post is locked for comments

  • Marc Collins Profile Picture
    Marc Collins 60 on at
    RE: Error when mapping dynamic fields in a workflow

    Great.  That worked. Thank you

  • Verified answer
    Michel Gueli Profile Picture
    Michel Gueli 982 on at
    RE: Error when mapping dynamic fields in a workflow

    Maybe this will help. Found this answer:


    Last weekend I had the same problem.

    The solution was to use Internet Explorer as Browser.

    In IE i had no problems, but in Firefox i had the same problems as you describe!

    Test it - its working!

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans