Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"In Progress" Workflow tasks are locked after updating to SharePoint 2010 SP1


View products that this article applies to.

Symptoms

Workflow tasks created from Out of the Box workflows cannot be completed after installing Service Pack 1 for SharePoint Server 2010. The error message “The task is currently locked by a running workflow and cannot be edited" is shown when a task assigned by the workflow (like “Approve” or “Reject”) attempts to complete. This behavior occurs when the task is "In Progress" before Service Pack 1 is installed.

Affected workflow templates:

- Approval – SharePoint 2010

- Collect Feedback – SharePoint 2010

- Publishing Approval Workflow

↑ Back to the top


Cause

Every workflow task has a reference to its workflow definition. When there is an in-flight workflow and its tasks, the Workflow definition file of the original Out of the Box workflows is replaced with new ones if we upgrade the farm or Site Collection with Service Pack 1. This makes the tasks of the previous version of Out of the Box workflows lose the reference to their workflow definition and get into locked state when a task assigned attempts to update (complete like “Approve” or “Reject”). Eventually workflow instances of the previous version of Out of the Box workflows cannot be completed.

↑ Back to the top


Resolution

To resolve this issue, install the hotfixes that are provided in the following articles in the Microsoft Knowledge Base:
2687614 Description of the SharePoint Server 2010 hotfix package (Coreservermui-xx-xx.msp): October 30, 2012
2687557 Description of the SharePoint Foundation 2010 hotfix package (Wss-x-none.msp): October 30, 2012
Note You must install these hotfixes after you install SharePoint 2010 SP1.

↑ Back to the top


Workaround

Without the physical file of the version of workflow definition before the upgrade, we cannot complete the tasks unless we restore the workflow definition file of the previous version. So we recommend the Customers to restart the stopped (locked) workflows by clicking “Terminate this Workflow now” menu in workflow status page shown below, which will also remove all the locked tasks related to that workflow.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2737435
Revision : 4
Created on : 8/20/2020
Published on : 8/20/2020
Exists online : False
Views : 226