“A type named ’SP.Data.ListItem’ could not be resolved by the model. When a model is available, each type name must resolve to a valid type” error in SharePoint 2013.

Hi,

Was getting the above error while creating a listitem for a Tasks List using Rest interface in a SharePoint app.

Here we need to pass SP.Data.<ListName>ListItem i.e. ListEntityTypeFullName of the List.

We can get it using the following

https://<site>/_api/web/lists/getbytitle(‘<List Name>’)?$select=ListItemEntityTypeFullName

More details

http://msdn.microsoft.com/en-us/library/jj164022%28office.15%29.aspx#ListItems

Hope it helps.


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

4 thoughts on ““A type named ’SP.Data.ListItem’ could not be resolved by the model. When a model is available, each type name must resolve to a valid type” error in SharePoint 2013.”

  1. Thank you! I was getting the same error. I did not realize SharePoint automatically capitalizes the first letter of your list’s internal name. Example: I named my list wfdev and SharePoint actually named it Wfdev, which was causing the error.

    Like

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.