SharePoint Workflow terminates abruptly when the onWorkflowItemChanged event reaches

I have a workflow running on a list of forms. The workflow has an OnWorkflowItemChanged activity sitting in a While activity. I know that the workflow goes into a While loop and checks for a while condition that is "true", but it does not go into the OnWorkflowItemChanged activity to execute its code. After it enters during the activity, it stops the execution of the workflow and sets the status of the workflow to Completed, even though there are more activities after the while activity.

What can cause the workflow to end when it reaches the onWorkflowItemChanged activity?

+2


source to share


1 answer


If there are any unhandled exceptions in your activity, the workflow will transition to a completed state. Please debug your code and see if you can handle this exception.



Thank!

0


source







All Articles