ListData.svc and expand limitation RRS feed

  • Question

  • Hello, I'm trying to display SP list on a grid in silverlight using ListData.svc.

    I need to expand my query to entities, but I've got an exception every time when I set 8 $expand segments.
    How to increase limit for expand on DataServiceQuery? or is there a better way to do this? 
    Or maybe you have another solution for this? (maybe without expand)

    public DataServiceQuery<ProjectItem> MyProjects
            {   get 
                    var query = from p in this.Projects.Expand("Tasks,CreatedBy,Client,Contractor,ProjectManager,Supervisor,Supporter,TeamLeader")
                                select p;
                    return query as DataServiceQuery<ProjectItem>;
                set { ; }

    When I do like in an example I've got an exception: "The request includes 8 $expand segment(s), but the maximum allowed is 7."

    Saturday, January 19, 2013 9:56 AM

All replies

  • Hi Indul,

    Did you noticed, <header class="entry-header"> and <time ..> tags which are coming in your answer above.

    Well it comes when you usually copy and paste the whole content of a webpage. Just sharing the URL of that page and NOT Marking your own answer as correct could also have served the purpose.


    Thanks, Ali Yasir http://www.sharepointstack.blogspot.in/

    Sunday, January 20, 2013 4:15 AM