A SharePoint Server 2013 workflow goes into a canceled state when you start an existing SharePoint Server 2007 or SharePoint Server 2010 workflow


Consider the following scenario.
  • You use the "Start a List Workflow" or "Start a Site Workflow" action from the Microsoft SharePoint Server 2013 Workflow Platform to start an existing SharePoint Server 2007 or SharePoint Server 2010 workflow.
  • You gain access to the list or site workflow's local variables.
  • The String data type or the List Item ID data type is used. However, its value is null. 
In this scenario, the SharePoint 2013 workflow goes into a canceled state, and the following exception is displayed on the Workflow Status page:
Source at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context)
at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Note This issue does not occur for other data types.


To work around this issue, use the "Set Workflow Variable" action to make sure that the String data type and the List Item ID data type are not empty.

Номер статьи: 2738553 — последний просмотр: 16 нояб. 2012 г. — редакция: 1

Отзывы и предложения