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
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.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156