Saturday, July 27, 2013

Making SharePoint event receiver event Asynchronous to Synchronous to avoid save conflict error

There are some scenario in Event Receiver when sometimes we get Save Conflict Error while uploading a single document to document library from UI, the edit properties page appears, we update the properties and save the changes, there is a possibility to get a Save conflict error. This is because ItemAdded is an Asynchronous event.

To avoid this error the ItemAdded event can be made Synchronous by doing the following:
1- Open Elements.xml file of Event Receiver and add below section inside Receiver tag....


See here my complete Element.xml file...



No comments:

Post a Comment

SharePoint Deployment Error : The specified path, file name, or both are too long.

Hi, Sometimes we get surprised with below error while deploying wsp file... Solution : To overcome with this issue, we just ne...