I don’t mean that it’s largest and most luxurious application every written, but rather that you may be cruising headlong into a nasty rendezvous with an iceberg that could deal a severe blow to your project.We may never know about all of the dangers lurking out there, but today we’re going to cover at least one danger you may encounter while writing event receivers – an annoying issue with the Item Updating and Item Updated events firing twice.
It appeared that for those Content Types, the Managed Metadata field was Optional, not Required.There appear to be four (4) Taxonomy Event Receivers: The problematic library at the customer was lacking the first set of Event Receivers, which are responsible for syncing the hidden field. I can’t really explain why only some Content Types were affected.I’ve written a one-off script (Console App) that loops all lists with a Managed Metadata field on all sites in the site collection and ensures the Taxonomy event receivers. I’m guessing the Optional/Required setting of the Managed Metadata field is involved somehow, but I didn’t really confirm that through testing. Cancel = True End Try End Sub as a result deletes nothing.(no updates required since you are changing the value before it gets saved) I would verify that your Event Receiver is attached to the list.