My workflow is quite long and have a lot of Stages. Stages include stuff like
- Create new Tasks
- Send email to a few people.
- Update some fields in the list.
Most of the times while sending email, workflow stuck there. Then looking at the workflow status it shows the error-
RequestorId: 2bd83918-60ae-ced2-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentNullException: Value cannot be null. Parameter name: Input at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
The workflow does not continue to run its execution which results in the renaming steps failed to do their job.
I am having this issue for a very long time now and it causes me problem.
Is there any way we can handle exceptions in the workflows? So that if a steps fails we can handle it properly?