Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
- browser version
- SPFx version
- Node.js version
- etc
Describe the bug / error
We are doing a REST API search query where are are trying to sort (ascending) the results using RecentViewCount managed property
If we try to paginate the results we get a 500 internal error. We don't have this error doing the same if we sort for the same property (RecentViewCount) but descending
Very weird error because it seems it depends of the number of row per page, row limit, etc..
I have tried this in 3 different tenants with the error is all of them
Everytime if I change the sorting clause to descending the query works fine
Many thanks in advance
Steps to reproduce
- Open the SharePoint Search Query Tool and connect to a tenant
- Add for example the text ContentTypeId:0x010100* in the Query Template field
- Add * in the Query Text field
- Add RecentViewCount:ascending in the Sort List field
- Row Limit: 24, Row per Page:24, Start: 72
- I have noticed that if I reduce the row per page and row limit it seems the error doesn't happen
Expected behavior
HTTP/1.1 500 Internal Server Error
{"error":{"code":"-1, Microsoft.Office.Server.Search.REST.SearchServiceException","message":{"lang":"en-US","value":"An unknown error occurred."}}}
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
We are doing a REST API search query where are are trying to sort (ascending) the results using RecentViewCount managed property
If we try to paginate the results we get a 500 internal error. We don't have this error doing the same if we sort for the same property (RecentViewCount) but descending
Very weird error because it seems it depends of the number of row per page, row limit, etc..
I have tried this in 3 different tenants with the error is all of them
Everytime if I change the sorting clause to descending the query works fine
Many thanks in advance
Steps to reproduce
Expected behavior
HTTP/1.1 500 Internal Server Error
{"error":{"code":"-1, Microsoft.Office.Server.Search.REST.SearchServiceException","message":{"lang":"en-US","value":"An unknown error occurred."}}}