I have a slight problem with a WorkFlow that starts on creation of a new item. The item is created using a third party plug-in to move a Document from one library to another. The plug-in copies the document and then set's the fields accordingly.
The problem I have is that my WorkFlow tries to update one of the fields being mapped during the activation sequence. I've moved the update into a second code activity after onWorkFlowActivated, but it still hits the same SPException.
I'm not sure if this is because the item is still 'Locked' by the data copy process, or if it's just the fact that the item has been modified since the WorkFlow kicked off. Either way, I've tried to use item.SystemUpdate() to burn through the lock, but the exception below still fires. I've also tried putting the Thread to sleep for a minute, which makes me think this isn't a lock isue, but the fact that the item has changed.
Message="The file 2TechnicalReview/SO1000305V1.XLS has been modified by Username on 12 Sep 2007 09:11:00 +0100"
This only happens if I've used the data copy which updates fields, Manual kick off and upload work perfectly.
Paul.
www.myfatblog.co.ukMCTS: WSS 3.0
MCTS: MOSS 2007