Thursday, July 8, 2021

Generally, Workflows are getting failed after 8 iterations. Is there any way to overcome this?

 Workflow iteration will be happened if we call the workflow by itself. Workflow will be failed after 8 iterations (Loops) in CRM. This can be managed with Correlation Token at the backend. Correlation Token is a counter that has 60 min time limit, and it will be self-destructive after 60 min.

Now Correlation Token is created with counter “1” and time “60 min” on running workflow for the first time. If the second iterations of the workflow will start before 60 min, then counter will be increased by 1 and it will set to ‘2’. Once the counter reaches 8 the workflow will be failed with infinite loop errors.

If in case second iteration of the workflow happens after 60 min then the old Correlation Token will be cancelled and new Correlation Token will be created with counter “1”.

No comments:

Post a Comment

Featured Post

Construction Result Summary Jun-2019