Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Updating Status Reason for Disqualified Leads in Bulk

Posted on by Microsoft Employee

Hello,

I am trying to update a number of closed (disqualified) leads with a workflow that changes their status reason.

When I try to run the workflow and check the background processes, I notice that the workflow automatically cancels.

When I try to resume the workflow, I get this Error:

------------------------------

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]:
System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #A0973B67Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>b8d44a64-1e07-485a-9ee5-4681d7128df7</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #A0973B67</Message>
<Timestamp>2018-05-09T12:33:20.8417204Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>b8d44a64-1e07-485a-9ee5-4681d7128df7</ActivityId>
<ErrorCode>-2147204762</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>The state transition requested is not valid for the current state. Current state: 3, current status: 32, target state: 0, target status: -1.</Message>
<Timestamp>2018-05-09T12:33:20.8417204Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

-------------------------------------------

I am unable to pinpoint the issue.

Please advise,

thanks,

Kodor

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Updating Status Reason for Disqualified Leads in Bulk

    Hello Wayne,

    Thank you for your quick response!

    I added a step to set the status to open again and then perform the change but

    I am still getting the same auto cancel error.

    Edit: Never mind it worked.

  • Verified answer
    Wayne Walton Profile Picture
    Wayne Walton 13,726 on at
    RE: Updating Status Reason for Disqualified Leads in Bulk

    You need to reactivate the record first.  So your workflow will need to change the status to Active, then update the Status Reason.

    Plus, each Status Reason is tied to only one Status, so you're going to have to make sure the Status Reason you're changing things to match the final status of the Lead.  

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans