I'm using Microsoft Graph Explorer to query a Sharepoint site. I'm applying a search using a desired document name.
The base query looks like this:
https://graph.microsoft.com/v1.0/sites/{mysite}.sharepoint.com,{siteid}/drive/root:/{rootpath}:/microsoft.graph.search(q='searchphrase')
The query works fine, returning some results. There's @odata.nextLink, which also works fine, returning some another results.
But the second @odata.nextLink returns
{ "error": { "code": "generalException", "message": "General exception while processing", "innerError": { "date": "2022-04-20T08:40:12", "request-id": "cc7d19b5-49c8-49ea-a0ea-1ff745035fa9", "client-request-id": "c8a9436d-dced-c9c4-653f-e3dcd040e688" } } }
The failing @odata.nextLink looks like this:
https://graph.microsoft.com/v1.0/sites/{mysite}.sharepoint.com,{siteid}/drive/root:/{rootpath}:/microsoft.graph.search(q='searchphrase')?$skiptoken=s!NDAwOzBmNTU2OWY0LTYxNjUtNDI5Mi1iZDAwLTNmZjk2Yzg3OWQwNQ
It fails for both v1.0 and beta. It worked fine a week ago - unfortunately can't say exactly when.
Sharepoint documents are added/updated daily.
Is it possible that the Sharepoint data causes the exception (like a file with a too long name, webUrl, et cetera)? Can I verify it somehow?
I assume that it might be the cause, because I can access many nextLink
s if I apply $top=10
, but the first nextLink
throws general exception if I apply $top=100000