Sharepoint workflow locked

MrB

New Member
I have a code which uses Sharepoint workflows. The workflow has three broad steps. After the completion of the 2nd step it sends out a mail for approval/rejection. If I click approve in the mail, then a subroutine should be called to make some changes, and the workflow should get resumed from the 3rd step.I have started observing the error "Task locked by Running Workflow and Cannot be Edited" after the "Approve" button is clicked in the email. I checked through a lot of blogs, and all of them suggested to set taskItem[Microsoft.SharePoint.SPBuiltInFieldId.WorkflowVersion] = 1 (http://www.stuartroberts.net/index.php/2012/01/14/task_locked_running_workflow_cannot_be_edited/)If I do this, then I no longer get the error message, but the 3rd step of the workflow does not initiated. Why is that happening?Is there anything else I can do to solve this issue?Thanks!
 
Back
Top