This workflow job was canceled because the workflow that started it included an infinite loop.

In CRM, Workflow is one of the amazing things. If our workflow calls itself (on the same entity) more than 7 times in an hour, the 8th instance will fail with the below error.
“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 and throw error message.”
CRM has a limit for this depth. This can seen in MSCRM_Config database by executing the following query.

       COLUMNNAME = ‘MessageProcessorMaximumDepth’

If we have really strong requirement that workflow should be called more than 8 times then we can update the value in the Database using the following update query.


WHERE COLUMNNAME = ‘MessageProcessorMaximumDepth’

After updating, make sure you reset IIS so that new value will be considered by CRM. 

Note: This is unsupported, it may cause issue when you upgrade the CRM system to newer versions.
Hope this helps.

Happy CRM’ing


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s