SharePoint Workflow and the infamous “save conflict” error – Part 2 – The Delay activity is your friend

My¬†SharePoint State Machine workflow has come a long way since my last post, and I’m going to record my discoveries and tips over the coming weeks. The first discovery is the importance of procrastination.

Procrastination you ask? Well, actually the use of a Delay event within a SharePoint workflow. Continue reading “SharePoint Workflow and the infamous “save conflict” error – Part 2 – The Delay activity is your friend”

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”