Fixed – “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.


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

<a href="https:///_api/web/lists/getbytitle(&#8221;)?$select=ListItemEntityTypeFullName”>https://<site>/_api/web/lists/getbytitle(‘<List Name>’)?$select=ListItemEntityTypeFullName

More details

Hope it helps.


appweburl or SPAppWebUrl is undefined error in SharePoint 2013 Auto Hosted Apps


I was getting the “appweburl” is undefined error while developing a SharePoint Auto Hosted App.

// Initialize the RequestExecutor with the app web URL.

executor = new SP.RequestExecutor(appweburl);

//Get the URI decoded URLs.

hostweburl =




appweburl =





The value of hostweburl was getting passed in the querystring properly, but the value for appweburl was not getting passed.

The way to resolve this issue was to add an empty element to the App.

By default the Autohosted or Provider-hosted template have an empty app web. If the app web is empty SharePoint doesn’t create the app web for you.

That’s how simply adding an empty element fixes the issue.

The post that came to rescue.

Hope it helps.

%d bloggers like this: