web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow error

(0) ShareShare
ReportReport
Posted on by

Hello Everyone

I have a workflow has has an if condition.

If QuoteStatus equals [Draft]
  Then update Opportunity
    Update Opportunity ID
      Quoted Stage to Quoted   (note this is a look up field) 

This works great if we create a Quote from an Opportunity, but if we create a Quote from an Account we get an Business Process Error Cannot find record to be updated.

If I deactived the Workflow we're allowed to create the Quote from an Account

Here is the error code that points to the workflow

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Cannot find record to be updatedDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>OperationStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>SubErrorCode</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>Cannot find record to be updated</Message>
  <Timestamp>2015-10-23T20:10:15.16122Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[20e453ee-c179-e511-80ef-c4346bad135c: ]
Starting sync workflow 'Quoted Opportunity', Id: 18e453ee-c179-e511-80ef-c4346bad135c
Entering ConditionStep1_step:
Entering UpdateStep3_step:
Sync workflow 'Quoted Opportunity' terminated with error 'Cannot find record to be updated'

</TraceText>

I can I fix this any help would be great.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at
    RE: Workflow error

    Hi Damon,

    If QuoteStatus equals [Draft]

     Then update Opportunity

       Update Opportunity ID

         Quoted Stage to Quoted   (note this is a look up field)

    Before you "then update opportunity"

    Please you give more condition :

    If Opportunity contains data.

    Before continue to update the opportunity id

    Because it tried to update the Opportunity but when you create from account directly (not from opportunity) by the time you dont have the opportunity for system to update.

    Hope this helps.

    THAnks.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans