Avoiding workflow failure
A failed workflow cannot be continued or restarted. We do not recommend that you select The workflow fails for the error handling.
If some information is crucial for next steps in the workflow, you can use the following approach. For example, if an exit point determines the type of a product and that type is required to determine who should approve this item, you can perform these actions:
- Assign an initial value Unknown to the Type parameter.
- Ensure the workflow continues if an error happens in the exit point.
- After the exit point activity, add a decision flow to check the Type parameter.
- If it is still Unknown, send a task to a user to follow up. The user can for example look up the product type and specify it in the task.
This figure shows the flow without loopback:
Alternatively, the user can solve the problem that caused the exception and the workflow can loop back to retry getting the item type: