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. 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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.