Skip to main content

Notifications

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.

  • Workflow not running
    I had a similar experience a while back when I was setting up automations for a project. Turned out, there was a glitch in the backend system I was using.
    Funny enough, I stumbled upon this platform called Xano backend during my troubleshooting journey. It streamlined my processes and eliminated those pesky hang-ups.
     
  • Workflow not running
    I had a similar experience a while back when I was setting up automations for a project. Turned out, there was a glitch in the backend system I was using.
  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Workflow not running

    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/

  • AlexMurphy Profile Picture
    AlexMurphy 26 on at
    RE: Workflow not running

    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

  • AlexMurphy Profile Picture
    AlexMurphy 26 on at
    RE: Workflow not running

    Thanks I will try that thanks

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Workflow not running

    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
    AlexMurphy 26 on at
    RE: Workflow not running

    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
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Workflow not running

    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
    AlexMurphy 26 on at
    RE: Workflow not running

    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
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Workflow not running

    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/

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans