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
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.
I will check this information (I will create one recurring workflow and make timeout 1 hour).
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156