liquidating sale - Itemupdating folder fires twice

I was associating the event receiver to the custom list through Feature Activated on a feature receiver for my Event Receivers project.I had already covered all the basic things such as: I even went as far as completely emptying the body of the handler to see that in fact the event was firing twice.Likewise if I then make changes to code2then it will trigger twice, once with folder2and then with code2I'll re-check with current and latest version and let you know.

itemupdating folder fires twice-66

The handler simply creates a task in the Tasks list corresponding to the new item added to the custom list.

Every time an item was added to the custom list, the event was firing twice.

twice) I'll re-check with current and latest version and let you know.

] So for the past week or so I’ve had this looming issue hanging over my head that I would try to nail down in-between other issues that I swear was going to be the death of me.

I knew whatever it was had to be something really simple that I kept overlooking and something that, when I finally figured it out, would be quite .

The problem was that I had written an Event Receiver to handle Item Added events for a custom list.The first time the Item Updating and Item Updated events fire it is in response to the document properties changing.The second time they fire it is in response to the document being checked in.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.

Tags: , ,