Announcements
Hi
I have create a workflow that run on status change , this is my scenario( when a button click my workflow start create a custom activity and wait for complete or cancel this custom activity after that there are a change status on parent form and rest of the workflow run on form change status and create another custom activity for users in process .when i complete all of the custom activities it's ok and work correctly but when i cancel and return to back steps and complete again .i have a error
This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again
i think the logic of the my flow is true but i can't understand why i see this error
Can anybody help out me in this?
sorry if my English is bad...
*This post is locked for comments
The error is triggered because, by default, CRM only allows for up to eight nested child workflows. When you attempt to run more, CRM will recognize it as an infinite loop. Even though you typically want to avoid a scenario where you would be calling more than eight child workflows, you may sometimes need to. So what do you do then?
If you have an on-premises CRM solution and have access to the SQL database, you can increase the maximum limit. While this is unsupported, the setting is generally safe to do as long as you are accurate when you are typing the change into the database.
To increase the limits, follow the steps below:
1. Locate the setting in the MSCRM_CONFIG database in the table deploymentproperties.
2. Find the columnname called MessageProcessorMaximumDepth.
3. Update the value in that column.
powerobjects.com/.../
4. After updating the value, complete an IS reset on the CRM application server
Hi Meysam,
maybe you exceeded some limits, try to check this topics:
http://rokhri.com/blog/crm-2011-this-workflow-job-was-canceled-because-the/
https://community.dynamics.com/crm/f/117/t/180349
Otherwise best way is to share printscreen of your workflow, maybe you just overlook some business logic with status change, so we can check.
Kind regards,
Alex
Hi Meysam Heydari,
Can you post screenshots of your workflow?
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator