SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using event receivers to modify some of the inputs in a SharePoint 2013 site.

They are fairly straight forward, here is a simple example

public override void ItemAdded(SPItemEventProperties properties)

    using (SPSite site = new SPSite(properties.WebUrl))
        using (SPWeb web = site.OpenWeb(properties.RelativeWebUrl))
            //web.AllowUnsafeUpdates = true;
            SPListItem item = properties.ListItem; // Boom!
            var title = item["Title"].ToString();
            item["Title"] = title.Replace(" ", "_");


This renders the error

    Method not found: 'Microsoft.BusinessData.Runtime.IEntityInstance Microsoft.BusinessData.Runtime.NotificationParser.GetChangedEntityInstance(Microsoft.BusinessData.MetadataModel.IEntity, Microsoft.BusinessData.MetadataModel.ILobSystemInstance)'.


   at Microsoft.SharePoint.SPItemEventProperties.get_ListItem()
   at eventreceivers.Kundregister.PrivateCustomer.PrivateCustomer.<>c__DisplayClass2.<ItemAdded>b__0()
   at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)

I have ensured that those methods are available in the class.

Any advices are highly appreciated, thanks!

share|improve this question

I was facing the same issue.

Instead of using

SPListItem item = properties.ListItem;

use following code to get item,

SPListItem item = properties.Web.Lists.TryGetList(properties.ListTitle).GetItemById(properties.ListItemId);
share|improve this answer
Do this, and get rid of the using statements creating new SPSite and SPWebs - you have an SPWeb instance via properties so there's no need to create a new one. – James Love Aug 20 '15 at 14:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.