问题描述
我正在为SharePoint列表.将新项目添加到此列表后,我想为从新项目中提取的名称分配任务.
然后,我希望能够查看此任务.我运行了工作流程,但什么也没看到,只是被暂停了.
I then want to be able to view this task. I ran the workflow and I do not see anything, only that is was suspended.
这是我遇到的错误.
错误:
RequestorId:48e4d123-843d-fd2b-0000 -000000000000.详细信息:在工作流实例的执行期间发生未处理的异常.例外 详细信息:System.ArgumentException:Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(在System.Activities.CodeActivity.InternalExecute(ActivityInstance实例,ActivityExecutor执行程序,BookmarkManager)处的AssignedTo System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor执行程序,BookmarkManager书签管理器,位置resultLocation)来自活动的异常如果序列Microsoft.SharePoint.WorkflowServices.Activities.OperatingWebContextScope Microsoft.SharePoint.WorkflowServices.Activities.SingleTask文档室信息序列流程图PopulateTaskList.WorkflowXaml_c8db4111_ff3f_47b8_954a_f543daaf485b
RequestorId: 48e4d123-843d-fd2b-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 Document Room Information Sequence Flowchart PopulateTaskList.WorkflowXaml_c8db4111_ff3f_47b8_954a_f543daaf485b
谢谢,Matthew
Thanks, Matthew
推荐答案
您必须添加自定义内容类型
YOu have to add custom content type
https://social.msdn.microsoft.com/Forums/office/en-US/79c65ceb-8c8a-4c96-b75f-2ed18cdea483/unhandled-exception-occurred-during-the-execution-of-the-workflow -instance?forum = sharepointcustomization
https://social.msdn.microsoft.com/Forums/office/en-US/79c65ceb-8c8a-4c96-b75f-2ed18cdea483/unhandled-exception-occurred-during-the-execution-of-the-workflow-instance?forum=sharepointcustomization
https://social.msdn.microsoft.com/Forums/silverlight/zh-CN/332b56d3-3c5e-4217-ade4-7d6d98ec717a/workflow-suspended-with-unexpected-exception?forum=sharepointcustomization
https://social.msdn.microsoft.com/Forums/silverlight/en-US/332b56d3-3c5e-4217-ade4-7d6d98ec717a/workflow-suspended-with-unexpected-exception?forum=sharepointcustomization
这篇关于暂停工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!