Friday 3 December 2010

Infinite Loop Detection in CRM Workflows

Annoyingly, if you have a workflow that calls itself or a child workflow more than 7 times in an hour, you've probably runi in to CRM infinit loop detection. Basically, if CRM detects this happening it will step in and shut down the whole workflow.

However, you can chage the setting (provided of course that you know what you are doing and that your workflows are well written) to a greater number. You do this using the CRM Deployment Config Tool.

For example, if oyu need to up the number of loos from 7 to 20, you could use the following command:

microsoft.crm.deploymentconfigtool.exe workflowsettings update -maximumdepth:20

Happy testing!