Sunday, 27 March 2011

"File has been modified by..." errors

I used to get this error message frequently when working with event receivers (typically for document adding), now there are various possible situations that might cause this error(system.update(false)) etc but i found that in my situation, checking the version level of the ListItem helped remove these errors:

e.g.


if (oItem.Versions[0].Level.ToString().Equals("Published") )

No comments:

Post a Comment