itemNotFound when trying to download file from sharepoint list

JeGO_BE 21 Reputation points
2024-02-02T11:34:04.1+00:00

We have a sharepoint list where we were able to download files by using MS Graph without any issue. This stopped working some days ago.

We can see the file information on this link: https://graph.microsoft.com/v1.0/sites/XXX.sharepoint.com:/sites/Portaal:/lists/YYY/items/32e6823a-730b-42f0-9652-4587a4f596c2 User's image

Also this URL is no problem to list all the files in the library.
https://graph.microsoft.com/v1.0/sites/XXX.sharepoint.com:/sites/Portaal:/lists/YYY/items

When asking the driveitem, to obtain the download url, we get an error https://graph.microsoft.com/v1.0/sites/XXX.sharepoint.com:/sites/Portaal:/lists/YYY/items/32e6823a-730b-42f0-9652-4587a4f596c2/driveItem

{    "error": {        "code": "itemNotFound",        "message": "Item not found"    }}

This gives an error too: https://graph.microsoft.com/v1.0/sites/XXX.sharepoint.com:/sites/Portaal:/lists/YYY/items/32e6823a-730b-42f0-9652-4587a4f596c2/content

{
    "error": {
        "code": "BadRequest",
        "message": "Resource not found for the segment 'content'.",
        "innerError": {
            "date": "2024-02-02T11:29:30",
            "request-id": "666f27be-11b7-4d39-8066-e828211d9a7c",
            "client-request-id": "666f27be-11b7-4d39-8066-e828211d9a7c"
        }
    }
}

The documentation on https://learn.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0&tabs=http mentions it should work. Anybody an idea what the cause of this issue this could be?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,977 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,177 questions
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 29,041 Reputation points Microsoft Vendor
    2024-02-12T01:21:23.91+00:00

    Hi @JeGO_BE, This should be the issue from sharepoint backend. Here is a report similar with yours in admin center https://admin.microsoft.com/adminportal/home?#/servicehealth/:/alerts/SP709902. As the picture shows, this issue should be fixed by microsoft User's image

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful