Empty default libraries - error 404

Problem

All document libraries in KONNEKT and mapped drives are empty.

Background

There are glitches in certain data centers hosting SharePoint Online on Microsoft's site. KONNEKT uses Microsoft's GraphAPI to access all information related to document libraries and their content.

Especially the request to get the default document library from a Site Collection (Get drivearrow-up-right). KONNEKT's logs should contain entries if the default library operations fail:

[2025-05-07 11:31:28.957] [30304] [error] [RESTkitClient] Http request (OneDriveClient::GetDefaultDrive) GET: https://graph.microsoft.com/v1.0/sites/<TenantName>.sharepoint.com,8fd7d761-4f99-4fdc-a0aa-de6b685e5306,56d1fa73-2339-4329-9df3-61100d751650/drive - 404
    error: Item not found: The resource could not be found.(404)
   "{"error":{"code":"itemNotFound","message":"The resource could not be found.","innerError":{"date":"2025-05-07T09:31:28","request-id":"17a44641-4204-4811-b176-58a379125b5d","client-request-id":"17a44641-4204-4811-b176-58a379125b5d"}}}"
    Response Header:
Cache-Control: no-store, no-cache
client-request-id: 17a44641-4204-4811-b176-58a379125b5d
Content-Type: application/json
Date: Wed, 07 May 2025 09:31:27 GMT
request-id: 17a44641-4204-4811-b176-58a379125b5d
Strict-Transport-Security: max-age=31536000
Transfer-Encoding: chunked
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"France Central","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"PA2PEPF00011C65"}}
    Response:
{"error":{"code":"itemNotFound","message":"The resource could not be found.","innerError":{"date":"2025-05-07T09:31:28","request-id":"17a44641-4204-4811-b176-58a379125b5d","client-request-id":"17a44641-4204-4811-b176-58a379125b5d"}}}

or

To investigate, use GraphExplorer to check the get request for this document library:

https://developer.microsoft.com/en-us/graph/graph-explorerarrow-up-right

Workarounds

1) Enable the setting "Add all SharePoint document librariesarrow-up-right".

If enabled KONNEKT will use the List drivesarrow-up-right request to retrieve all document libraries from Site Collections.

circle-info

Please be aware that enabling this setting will cause existing file links to break.

2) Use "Managed Mappings" to map the important document libraries and disable the setting "Sharepoint Sites Autodiscoveryarrow-up-right".

GitHub issue

https://github.com/SharePoint/sp-dev-docs/issues/10241arrow-up-right

Last updated

Was this helpful?