Updating Locked Workflow Task

When trying to update a workflow task item in code, you may get the error “This task is currently locked by a running workflow and cannot be edited.”

This error gets thrown because the ows_WorkflowVersion of the task list item has been set to 512.

There may be a good reason it’s set to locked (i.e. currently being updated) but it you really really want to still update the task, you can override the flag.

Continue reading