1

The call (get the site default document library), usually "Shared Documents" started failing today for some reason.

https://graph.microsoft.com/v1.0/sites/{siteid}/drive

Documentation: Get the document library for a site

Error:

{
    "error": {
        "code": "itemNotFound",
        "message": "The resource could not be found.",
        "innerError": {
            "date": "2025-05-09T22:47:42",
            "request-id": "bd33264a-0d66-4694-95f2-c0acfd565ed5",
            "client-request-id": "bd33264a-0d66-4694-95f2-c0acfd565ed5"
        }
    }
}

This call fails the same manner:

https://graph.microsoft.com/v1.0/sites/{tenant}:/sites/{sitename}:/drive

Started failing randomly. Sometimes it works (for the same site), sometimes it fails. For some sites, it seems to work all the time, for others it always fails. The problem started very recently (today or yesterday, most probably). It was working for years before. Similar call (note drives not drive) still always succeeds:

https://graph.microsoft.com/v1.0/sites/{tenant}:/sites/{sitename}:/drives

Looks like some update is rolled out on Microsoft side. Is there some change in the Graph API? Maybe it is a bug? Or was it an intended change somehow. How do I fix or work around this?

3
  • 2
    Same for me. Definitely a bug in the Graph API. /v1.0/sites/{siteid}/drives works fine, but it doesn't support filtering by name. Commented May 10 at 8:40
  • 1
    @user2250152 What is worse, the drives it does not give the "default" document library, and the name of that can be different in different locales. Commented May 10 at 11:07
  • 2
    The issue started Thursday, but only for a random set of tenants. Started working again today. Microsoft replied here: github.com/SharePoint/sp-dev-docs/issues/… Commented May 10 at 18:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.