SharePoint Workflow and the infamous “Save Conflict” error

I’ve been working with SharePoint 2007 workflows for a couple of months now, and one of the most frustrating issues I’ve encountered is the generation of a “Save Conflict” exception in workflow code.

The scenario we’ve seen is as follows:

  • Your workflow code needs to update a field on the list item it is running against.
  • You make the change to the field required and called the Update method of the item.
  • An exception is thrown with the following message:

Save Conflict – Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes. Continue reading “SharePoint Workflow and the infamous “Save Conflict” error”