Problems with the SharePoint 2010 Rest services ListData.svc

On a current project I’m working on we found a strange behavior problem with the Rest services of SharePoint.

When you create a normal list (custom list or whatever list you want) you can open the list by using the ListData service like this:

When you navigate to this page you will see a RSS like representation of the the list what actually is a XML response of the service:


The problem occurs when we add a type of column to the list. Lets add a column of the type calculated field and call it test calculation. As data type we will take single line of text and add a calculation to calculate the length of the title like Len([Title]).

If we navigate to the ListData service we will see that the page is still the same like the above screenshot. When we look at the XML we will see that the Test calculation field is available in the XML.

<entry m:etag="W/&quot;1&quot;">
    <title type="text">Test</title>
      <name />
    <link rel="edit" title="TestListItem" href="TestList(1)" />
    <link rel="" type="application/atom+xml;type=entry" title="CreatedBy" href="TestList(1)/CreatedBy" />
    <link rel="" type="application/atom+xml;type=entry" title="ModifiedBy" href="TestList(1)/ModifiedBy" />
    <link rel="" type="application/atom+xml;type=feed" title="Attachments" href="TestList(1)/Attachments" />
    <category term="Microsoft.SharePoint.DataService.TestListItem" scheme="" />
    <content type="application/xml">
        <d:Id m:type="Edm.Int32">1</d:Id>
        <d:Modified m:type="Edm.DateTime">2011-01-11T07:58:56</d:Modified>
        <d:Created m:type="Edm.DateTime">2011-01-11T07:58:56</d:Created>
        <d:CreatedById m:type="Edm.Int32">1</d:CreatedById>
        <d:ModifiedById m:type="Edm.Int32">1</d:ModifiedById>
        <d:Owshiddenversion m:type="Edm.Int32">1</d:Owshiddenversion>

Now we change the formula of the calculation field to =LEN([TITLE]) = 5 and change the type to Yes/No. In the representation of the list we see that everything is working like it supposed to:


Now lets open the ListData Service and you will notice what I meant with the problem within the ListData service. You will get a Internal Server error like below:


Even if we change the formula to a very simple formula like =Yes the ListData service will still fail. I hope Microsoft will solve this problem in the first Service Package and till then we will just have to work around the problem.

2 Replies to “Problems with the SharePoint 2010 Rest services ListData.svc”

  1. Hi Maik, sorry to dig up such an old post, but did you figure out a solution to this? Also once you delete the column TestCalculation, are you able to access the List via ListData service again? I have a list that appears to be permanently broken even if I delete all columns in it.

Leave a Reply

Your email address will not be published. Required fields are marked *

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