Itemupdating folder fires twice

It’s a pretty simple fix, but we can definitely make it a bit more reusable for everyone on a development team and reduce the hassle of having to remember the specifics about how to run the check in their Item Updating and Item Updated event handlers.

On one list I have a workflow, which is changing columns in that list.

It appears as though they are firing twice in this situation because Share Point is updating the properties on the document and then checking it in on the same request.

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.

This happens only at the time of uploading file in to library.

Get Control By Id("ACObject ID"); User Field ACAssigned To = (User Field)Page. Update(); //if we're in the case of adding new item then the event //reciever Item Added is fired here for the second time //while Item Updated is not fired So how can I stop the second fire of item Added resulting on the item.

BTW : This Code isn't written in the itemadded method nor in the itemupdated method, actually it's the code in a user control for a webpart development.

This is my first post in 2013, here I just want to discuss about Event Receivers in Share Point 2010 (SPItem Event Receiver class) and an important factor with the Event Receivers.

Let me start with “What is an Item Event Receiver”Item Event receivers in Microsoft Share Point 2010 enable your custom code to respond when specific actions occur on a Share Point List Item.

Search for itemupdating folder fires twice:

itemupdating folder fires twice-23itemupdating folder fires twice-79itemupdating folder fires twice-15itemupdating folder fires twice-53

I'm trying to do some treatement after creating an item but the treatement is done twice because in my code after creating the item, I'm updating it , so the event reciever get fired twice: first when I add the element and the second when I updated it. Get Control By Id("ACDetails ID"); item["Object"] = ACObject. PS: in the case of updating an existing Liste the item Updated is fired twice too !! For this, You need to set scope of feature = Web as well as you need to set scope in Feature.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “itemupdating folder fires twice”

  1. I am fun loving guy i like to red books,watching movies and to go gym. I liked one of the profiles which eventually turned out to be my perfect match.. After exchanging interest on Shaadi.com, it just took us few conversations & meetings to click and we decided to tie the knot. On 31st October 2017 I was just going through all the recommendations which had for me and at that time I came across his profile.