Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Workflow not running

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.

Categories:
  • 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,962 Moderator 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,962 Moderator 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,962 Moderator 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,962 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans