Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Recurring Workflow

Posted on by

Hello!

I have an issue about recurring workflow. I need to check opportunities every day (if opportunity hasn't any task - I need to create new task). I have created two process - main and child (www.powerobjects.com/.../setting-up-recurring-workflows-in-dynamics-crm-2016)

But, in general, process can run only 7 times. After that I'll get an error - "This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again. For information about workflow logic, see Help." I have read about depth (default = 8).

How I could solve this problem?

*This post is locked for comments

  • RE: Recurring Workflow

    As I understood, I could run workflow (recurring) only 7 times by day. One time by day the counter is clearing. In general, I need to run my workflow one time by day. In my opinion all need to be ok.

  • RE: Recurring Workflow

    I will check this information (I will create one recurring workflow and make timeout 1 hour).

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Recurring Workflow

    Hi Anatoliy,

     that limit (7) only applies if the workflows are running too often (within an hour if I'm not mistaken). If you can make your recurring workflow to spawn itself less often, it should be fine.

     On the other hand, this is exactly the reason why Andrii was offering that other solution with SSIS/Kingsway, and, the, there is that option with Azure Functions.. you don't have to worry about these tricks then.

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,692 on at
    RE: Recurring Workflow

    Hi,

    I'm not positive of your scenario, but it sounds like your main workflow keeps calling the child workflow. When it spawns the 7th one, you get the error because it appears to be an infinite look.

    If that's what you're doing, you'll want to set up your main workflow so it's on demand and can run as a child. The workflow logic is:

    1) Do whatever the workflow should do

    2) Timeout for 1 day

    3) Launch main workflow

    With this type of setup, any workflow is only launching one other workflow and it'll continue indefinitely.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

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