Forum Discussion

EVERTON BATISTA PETRO ALEXANDRE's avatar
Apr 03, 2019

Problem list more than 5000 items with column indexed

Hi, I have a list in SharePoint Server 2016 with more than 5000 items. When I use rest only items/&top=20 the rest works fine. But, When I add orderby using a indexed column, like created date, the threshold limit error happen... When I use the column ID in orderby the rest works perfectly. The same behavior happens in native SharePoint view... I have using paging in native view too.

I created the column "created date SP native" like indexed column in library settings.

 

Thanks

Everton

5 Replies

    • ChrisWebbTech's avatar
      ChrisWebbTech
      MVP
      That said I don’t think SharePoint 2016 has the same tech SharePoint online has for getting around the limit so expanding that is Probabaly your only option.
      • EVERTON BATISTA PETRO ALEXANDRE's avatar
        EVERTON BATISTA PETRO ALEXANDRE
        Brass Contributor

        ChrisWebbTech 

         

        When I call in SP 2016 Server: https://homsintegre.ons.org.br/sites/3/41/_api/web/lists/GetByTitle('Produtos')/Items?&top=20&%24select=Id&%24orderby=Created+desc&%24expand=File

         

        First the sharepoint get all items and after the sharepoint send the first 20 items???

         

        Thanks

        Everton