Problem:
Only one of our three Office 365 tenant, a Graph call fails with an itemNotFound error. The other two tenants works as expected.
Case:
When using the Graph API to access a folder on a SharePoint site, we get the following "itemNotFound" error: { "error": { "code": "itemNotFound", "message": "The resource could not be found.", "innerError": { "request-id": "4ea1730c-1b1d-4993-8335-4e10cc3b47c1", "date": "2020-04-27T09:15:37" } } }
Query Information:
This is the final query that fails: https://graph.microsoft.com/v1.0/sites/54929188-6c44-4555-a85b-27a698b9b572/drive/root:/InvestmentTemplate
To find information to "build" the query, that fails, we are using this query to find the site id:https://graph.microsoft.com/v1.0/sites/testnrep.sharepoint.com:/sites/DocumentTemplates
To recreate test data:
- Create a site with the url "/sites/DocumentTemplates"
- Add a folder name "InvestmentTemplate" to the Shared Document library
The full folder url: https://ZXY.sharepoint.com/sites/DocumentTemplates/Shared%20Documents/InvestmentTemplate