Cannot find some documents (uploaded 3days ago) through Graph Api, returns "itemNotFound"

Jim Li 0 Reputation points

I need to get a file from a very deep folder in a rather large Document Library (713667 items) by Graph Api. This site was migrated from SharePoint 2016 several days ago.

I try to get the file using this api


but always return "itemNotFound" error.

However, this only happens in some folders, and documents in other folders can be found normally.

The internet says that Graph Api relies on SharePoint search to retrieve it, and then the file I found to be unfindable really couldn't be found in the search bar for the last couple of days after I first uploaded it, but today I found that it is now searchable in SharePoint Online, but still not findable via Graph Api!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,129 questions
0 comments No comments
{count} votes