Itemupdating firing 2 times
If you were to check the document out and edit the properties on the document, you would see the Item Updating and Item Updated events fire once.Later on, when you checked the document in, you would see those events fire again.Doing so, not only we get to see which events fire but also we’ll observe the sequence they fire.Remember before-events are sync events, however after-events are asynch events. It’s an “Access Denied” error, due to security context of current user.
In this demo, I’ll have a code snippet to update current web’s description each time an event fires as seen below.If you create a new document using Office client applications (such as Word, Excel, Power Point) and save it into Share Point, event receivers do not fire.Common belief: This is because “adds from Office only fire Item Added, not Item Updated”.Always use exception handling in your event receiver code. You can follow any responses to this entry through the RSS 2.0 feed.