Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

System jobs caught in a loop, unable to stop them

Posted on by Microsoft Employee

I built a workflow (with the trigger criteria the same as the update field). This has caused the workflow to run continuously for the past 5 days, every 4 minutes. After realizing my error, I have tried to stop these system jobs from recurring with no success:

I deactivated, and then deleted the original workflow. No effect.

I've attempted to pause or cancel the workflows. After the status changes to 'paused' or 'cancelled,' new system jobs continue.

I've attempted to run a bulk record deletion job. 'Waiting for resources,' and never starts.

I've restarted the asysc service. No effect.

Any help or advice about stopping these system jobs and preventing them from recurring would be greatly appreciated.

*This post is locked for comments

  • Verified answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: System jobs caught in a loop, unable to stop them

    Can you check AsyncOperationBase table in database (I assume it's on-premise) for records regarding this workflow? It would be easier than depending on System Jobs only visible from application UI. Also have you checked if your workflow is still available as "Activation" type in Advanced find?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: System jobs caught in a loop, unable to stop them

    Thank you for taking the time for responding Pawel.

    To clarify, do you mean ALL related system jobs, even the ones that had already run and were 'successful?'

    When we deleted only the 'waiting for resources' system jobs, they recurred as soon as the async service started again.

  • tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: System jobs caught in a loop, unable to stop them

    Also you should stop Async Service first, so that it will not spawn new process instances in the meantime. Stop Async Service, remove all the System jobs that are related to this workflow, remove the Workflow Activation and after all the cleaning start Async Service

  • tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: System jobs caught in a loop, unable to stop them

    If you go to Advanced Find and search for you process WITHOUT any search criteria other than your workflow name (so you have to clear all the default search filters), do you see your workflow? It should be there a record with Type = "Activation". Can't verify it right now but maybe deleting this record would stop the flow.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans