I have a loop in a workflow that sometimes is not completing. Workflow gets cancelled after 32 iterations.
Most Probable Cause
Workflow has stopped after 32 iterations because Activity count exceeds max number allowed for the workflow version. By default max count will be set as 100. But here, the count reached to 101.
As a workaround, increase the max activity count to 300. It will allow the loop to continue until workflow activity count reaches to 300.
To change the maximum number of workflow activities:
- Navigate to Workflow > Workflow Editor.
- Check out a workflow.
- In the title bar, click the Workflow Properties icon.
- Click the Activities tab.
- In the Max activity count field, enter a value that accommodates the expected number of executing activities for the workflow.
- Click Update.