SharePoint 2013 designer workflow An unhandled exception occurred during the execution of the workflow instance. Value cannot be null error.

This tutorial, we will discuss how to fix error An unhandled exception occurred during the execution of the workflow instance. Value cannot be null error.

Recently While working in a SharePoint designer workflow, I got an error which says like below:

RequestorId: d37a725d-0bba-65b8-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 bookmark manager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmark manager, Location result location)

Well, I searched a lot to got to know what was the exact issue. Since I do not have access to the ULS logs, so it is difficult to get to know what is the exact issue.

Finally, after putting lots of logs to history action, I came to know about the issue.

An unhandled exception occurred during the execution of the workflow instance. Value cannot be null error.

I had a people picker field in the form and that is not a mandatory field. But in each item update, I was trying to send an email through the Send Email action. I was putting the people value in the To field of the email

So when people were putting an email id in the people picker then the workflow was working perfectly, But when people were not putting any email id then that it was sending the “System.ArgumentNullException: Value cannot be null” exception.

So if you will try to send an email where there in no email id in the people picker then this error will come.

You may like following SharePoint tutorials:

I hope this tutorial helps to fix error An unhandled exception occurred during the execution of the workflow instance. Value cannot be null error. which comes in SharePoint designer workflow.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>