Microsoft Graph API for SharePoint returns "UnknownError" when trying to get folder location after some time

vaibhav jain 0 Reputation points
2024-12-27T08:59:20.0533333+00:00

Hi,

We are consuming graphapi endpoint to get sharepoint folder location for that we using following endpoint
https://graph.microsoft.com/v1.0/drives/{driveId}/root/children?$filter=name eq '{folderName}'
Which is working fine for sometime, then after an week it used to stop and getting the following response
{"error":{"code":"UnknownError","message":"","innerError":{"date":"2024-12-25T06:34:03","request-id":"3dd4df2e-e50d-4fbf-b794-b9630a684c2c","client-request-id":"3dd4df2e-e50d-4fbf-b794-b9630a684c2c"}}}
Where as with the same access token it work continues for getting the site id
https://graph.microsoft.com/sites/{siteId}/drive
Can somebody help us with client-request-id or request-id what could be gone wrong with sharepoint?

Thanks in advance

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2024-12-30T02:26:16.1266667+00:00

    Hi @vaibhav jain,

    Per my test, I could run the api https://graph.microsoft.com/v1.0/``drives/{driveId}/root/children successfully in Graph Explorer.

    User's image

    Since our forum does not have the access to the backend log. I would recommend you to raise a new ticket in Microsoft Azure. They will have the permission to query logs. You could create the ticket by following button

    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.