Hi All,
We had a workflow in one of our environments, which was causing an issue in creating/updating records for an entity. The workflow was set to trigger on 2 conditions on 2 different fields. Problem here is even after deactivating the workflow it used to trigger despite it being not used in any other scripts or codes. We have now deleted the workflow and recreated a new one. Now if we try to again update/create a record it says “Record Is Unavailable” and refers to the old workflow id which has been deleted.
Below is the error we are receiving:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: workflow With Id = 3281cf8e-064f-e711-80e5-02bfac130328 Does Not ExistDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>workflow With Id = 3281cf8e-064f-e711-80e5-02bfac130328 Does Not Exist</Message>
<Timestamp>2017-08-08T23:49:13.1404906Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[4581cf8e-064f-e711-80e5-02bfac130328: ]
</TraceText>
</OrganizationServiceFault>
The deleted workflow is even causing failure to solution import with error "Could not retrieve parent object id for label with id <something> and label type code 19" to the particular environment.
Any advice/suggestion on this will be really helpful.
Thanks,
Saqib,
*This post is locked for comments