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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Workflow not running

(0) ShareShare
ReportReport
Posted on by 26

Hi 

I have a workflow which updates a field in another related entity from the Opportunity when it is closed as won.  However, the workflow just hangs on waiting and never completes. Can anyone help.

  • Guido Preite Profile Picture
    54,086 Moderator on at

    you should share more details, like a screenshot of the workflow, fields involved, etc etc.

    With only the description you provided it's not possible to guess what is going on inside your instance

  • AlexMurphy Profile Picture
    26 on at

    6567.workflow-1.jpgworkflow-2.jpg4174.workflow.jpgHi

    I have now attached some screenshots

  • Suggested answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    HI,

    Can you please open the process session record to see the error details of your workflow run?

    Please share the error details. You will see the error message under details->Message as highlighted in below image

    CR69.PNG

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • AlexMurphy Profile Picture
    26 on at

    Hi Bipin

    Attached is the screenshot how can it not find the record.  I don't understand

    Screenshot-2022_2D00_03_2D00_08-105941.png

  • Suggested answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    Hi,

    Could you please entire error message starting from Plugin Trace:?

    Also, please check if you have any workflow/plugin which is throwin this error.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • AlexMurphy Profile Picture
    26 on at

    Hi Bipin

    the full message is:

    Plugin Trace:

    [Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.UpdateEntity]

    [UpdateStep4]

    Error Message:

    Unhandled Exception: Microsoft.Crm.CrmException: Cannot find record to be updated

      at Microsoft.Crm.Workflow.Services.UpdateActivityService.Execute(ActivityContext executionContext, UpdateEntity updateEntity)

      at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)

      at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

  • Suggested answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    Hi,

    Update your workflow to run in background instead of Real time workflow. If changing mode to async does not work then you should trigger your workflow on Opportunity close entity.

    community.dynamics.com/.../264161

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • AlexMurphy Profile Picture
    26 on at

    Thanks I will try that thanks

  • AlexMurphy Profile Picture
    26 on at

    Hi Bipin

    Thanks for your help so far.  It didn't work changing the workflow to run in the background and unfortunately I can not  add a trigger from the Opportunity Close entity as I don't access to that on the create Process Screen

    Screenshot-2022_2D00_03_2D00_08-132701.png

  • Suggested answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    HI,

    Try adding wait condition for 1-2 minutes before updating the record.

    carldesouza.com/.../

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 91 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 71

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans