Skip to main content

Notifications

Customer Service forum
Unanswered

When I'm adding special character "&" in a field in CRM and trying to save getting Business process error. Can someone help me to resolve this issue

Posted on by 10

I'm using a field= "info" in fetch xml query in a custom workflow and when I'm adding special character"&" in a "info" field in crm form and trying to save I'm getting Business process error "Object reference not set to an instance of an object."

Fetch xml query :

@"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false' no-lock='false'>
                                      <entity name='lt_backinfo'>
                                        <attribute name='str' />
                                        <attribute name='name' />
                                        <attribute name='from' />
                                        <attribute name='until' />
                                        <attribute name='category'/>
                                        <attribute name = 'info'/>
                                         <order attribute='name' descending='false' />
                                        <filter type='and'>
                                        <condition attribute='statecode' value='0' operator='eq'/>
                                          <condition attribute='cusid' operator='eq'  uitype='account' value='{0}' />
                                        </filter>
                                        <link-entity name='typeSet' from='typeSetID' to='typeid' visible='false' link-type='outer' alias='StrtType'>
                                          <attribute name='pecode' />
                                          <attribute name='sendtoAltas' />
                                        </link-entity>
                                      </entity>
                                    </fetch>";

Unhandled Exception: System.ServiceModel.FaultException

Exception while executing Execute method Customer: Object reference not set to an instance of an object.

Exception while executing Execute method Customer: Object reference not set to an instance of an object.

Sync workflow 'Send info to sys' terminated with error 'Exception while executing Execute method Customer: Object reference not set to an instance of an object.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: When I'm adding special character "&" in a field in CRM and trying to save getting Business process error. Can someone help me to resolve this issue

    Hi vikas,

    Maybe you can refer the following links:

    How to handle Special Characters in Fetch XML | Microsoft Dynamics 365 CRM Tips and Tricks (inogic.com)

    community.dynamics.com/.../817266

    dreamingincrm.com/.../

    community.dynamics.com/.../677932

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

News and Announcements

Give Back to the Community this Month

Quick Links

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,807 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans