Open hakenr opened 9 months ago
Observation (Fiddler http dump):
One or more of the document libraries on the user or group's OneDrive contains more than 5,000 OneNote items (notebooks, sections, section groups) and cannot be queried using the API. Please make sure that none of the user or group's document libraries contains more than 5,000 OneNote items.
HTTP/1.1 403 Forbidden
Cache-Control: no-cache
Content-Type: application/json
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: 5dfbfda9-8936-439a-8931-ff1010e997da
client-request-id: 5dfbfda9-8936-439a-8931-ff1010e997da
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"011","RoleInstance":"AM2PEPF0001BE82"}}
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Location, Preference-Applied, Content-Range, request-id, client-request-id, ReadWriteConsistencyToken, Retry-After, SdkVersion, WWW-Authenticate, x-ms-client-gcc-tenant
Date: Sat, 14 Oct 2023 14:10:27 GMT
Content-Length: 669
{"error":{"code":"10008","message":"One or more of the document libraries on the user or group's OneDrive contains more than 5,000 OneNote items (notebooks, sections, section groups) and cannot be queried using the API. Please make sure that none of the user or group's document libraries contains more than 5,000 OneNote items. Browse to this page for more information: https://blogs.msdn.microsoft.com/onenotedev/2016/09/11/onenote-api-calls-fail-with-a-large-number-of-items-in-a-sharepoint-document-library/","innerError":{"date":"2023-10-14T14:10:27","request-id":"5dfbfda9-8936-439a-8931-ff1010e997da","client-request-id":"5dfbfda9-8936-439a-8931-ff1010e997da"}}}
I hope add import local note from onenote in offline environment.
Only notebooks from personal accounts (Microsoft Account, onedrive.live.com) are discovered and offered to be imported.
When I log in to my organizational account (work and school account, mytenantname.sharepoint.com) with Office365, no notebooks are discovered.