1

Task: when user updates an item, change synchronously another hidden field of this item. Problem: save conflict occurs AFTER update is called (not on this line).

  • I subscribe on EventReceiver's ItemUpdating method
  • I use SystemUpdate instead of Update.
  • EventFiring is off
  • AllowUnsafeUpdates is true

But I still get the same error. What is wrong with this code?...

    public void SyncTextFields()
    {        
        _listItem["Investigation_Exporter_Text"] = Exporter;
        _listItem.SystemUpdate();
    }
1
  • Set the synchronization property in the eventbinder.xml file to Synchronous.
    – Akhoy
    Commented Jul 30, 2015 at 15:58

1 Answer 1

0

I used SPItemEventProperties.AfterProperties instead of inner SPListItem and it worked fine. Thanks for reply. I'l try to set Synchronous and check if it help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.