1
Vote

SharePoint.DataService "id" Error

description

Hello,
I have a issue, after add a column, when i enter data, all columns add "id" field to the end of filter, example:

http://mySite/_vti_bin/ListData.svc/Schools()?$filter=startswith(Name,%27ci%27)&$select=Name,id

and trow the follow error: the id column does not exist

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code/>
<message xml:lang="es-MX">
Type 'Microsoft.SharePoint.DataService.SchoolsItem' does not have a property named 'id'.
</message>
</error>

why automatically add this field to the end, and why not found this field, if that field exist?

thanks...

file attachments

comments

nadeemyousuf wrote Feb 16, 2015 at 12:41 PM

Hi,

I am extremely sorry for late response. The Id field is used for creating a lookup. It is the list Item Id. Doesn't your list contain an Id field. I see the original error in screen shot is in some different language.

youpi wrote Feb 3 at 3:55 PM

I changed to ID instead of Id and it is working.