I have a feature that defines a number of list instances to provision whenever a new site is created using a particular site definition. The list template for one of these instances has an item event receiver attached to it that handles the ItemAdding and ItemUpdating events. Here is an example of one of my list instances:

   Title="My List"
   Description="Blah blah blah"
                <Field Name="Title">My Item</Field>
                <Field Name="Description">Some information about the item.</Field>
                <Field Name="Title">My Second Item</Field>
                <Field Name="Description">Some information about this item.</Field>

The problem I am having is that the ItemAdding event receiver is called for the second item ("My Second Item"), but not the first item. Similarly, if I add more items, ItemAdding is called for all of the new items, but never for the first item. (I have verified that the handler is being called for all items except the first one by setting a break point in the event handler code.) Has anyone else experienced this?

closed as too localized by Alex Angas Jun 6 '11 at 2:15

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    can you post the event receiver code? – Mike Oryszak Sep 21 '10 at 3:34
  • Mike, thanks for the reply. The event receiver code is pretty long and complex, and contains a lot of proprietary logic. Is there something in particular you're looking for? – jason.venema Sep 21 '10 at 16:56