Issue
When one of the branches in the "State Machine" action does not have a "Set Next State" action, the workflow will keep looping in the particular branch. This might lead to another error depending on the action configured under the branch.
Resolution
Add the "Set Next State" action in the end of each branch of the "State Machine" action.
Related Links