Kwizcom Forms

An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentException AssignedTo

SharePoint online An unhandled exception occurred during the execution of the workflow instance

In this post, we will discuss how to resolve the below issue which comes while running a visual studio workflow for SharePoint online site.

Recently as per our requirements, we were developing few workflows for our SharePoint online site using Visual Studio 2015. In one of the workflow, we were creating various tasks using “Single Task” workflow activity.

SharePoint deveopment training course

But when we run the workflow it gave the below error:

Also, read:

Step by step create a web API and deploy in Microsoft Azure for SharePoint online using visual studio 2015

How to create a site definition using Visual Studio 2013 in SharePoint 2013?

RequestorId: fe62cfea-bccf-5107-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentException: AssignedTo 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) Exception from activity Throw If Sequence Microsoft.SharePoint.WorkflowServices.Activities.OperatingWebContextScope Microsoft.SharePoint.WorkflowServices.Activities.SingleTask Sequence MyCustomTaskFormDemo.MyTestWorkflow.WorkflowXaml_b5a2cce1_a658_4396_a564_84feae343a0b

The error looks like below:

SharePoint online An unhandled exception occurred during the execution of the workflow instance
SharePoint online An unhandled exception occurred during the execution of the workflow instance

Solution:

The issue was there with the assignto field where we were assigning the email id for which we need to create the task.

In the Assigned to: filed, I gave a wrong email id.

Example: Instead of giving “xxxxxx@OnlySharePoint2013.onmicrosoft.com” I gave with wrong tenant id like xxxxx@yyyyyyyyy.onmicrosoft.com.

Once I gave the correct email id, the issue got resolved.

An unhandled exception occurred during the execution of the workflow instance
An unhandled exception occurred during the execution of the workflow instance

Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →