Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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:

<ListInstance
   FeatureId="880944D1-A24E-4edf-B8A8-D4F2DCB33F95"
   Title="My List"
   Description="Blah blah blah"
   Id="1036"
   OnQuickLaunch="TRUE"
   QuickLaunchUrl="Lists/Sample/AllItems.aspx"
   TemplateType="100"
   Url="Lists/Sample">
    <Data>
        <Rows>
            <Row>
                <Field Name="Title">My Item</Field>
                <Field Name="Description">Some information about the item.</Field>
            </Row>
            <Row>
                <Field Name="Title">My Second Item</Field>
                <Field Name="Description">Some information about this item.</Field>
            </Row>
        </Rows>
    </Data>
</ListInstance>

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?

share|improve this question

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