OneDrive Client Sync Issues: Unable to Retrieve DefaultDocumentLibrary ID

Copper Contributor

Hello everyone,

 

I've been facing issues with my personal OneDrive account for the past two months, where the OneDrive client gets stuck during the initial synchronization. After linking my account to the client, the client restarts at some point and appears to be stuck in a visual login loop. This issue persists across different devices, which leads me to believe it's likely a server-side issue.

 

The problem started around two months ago, and after attempting several standard troubleshooting steps (such as resetting, re-linking, reinstalling, and checking for updates), I opened a support ticket. However, due to a lengthy response time on the support ticket which eventually escalated without resolution, I decided to do some debugging on my end. Through this process, I discovered that the issue occurs during the initialization of the MS-FILESYNC protocol, where a series of HTTP, GET, and POST communications known as the first run are made to sync the client with the protocol server and authenticate the user among other steps. Specifically, the issue arises at the step where a GET request is made to retrieve the DefaultDocumentLibrary ID, as documented here.

 

The specific problem seems to lie in step 3 of the protocol, where the DefaultDocumentLibrary ID is being retrieved. The error message I receive is: {"error":{"code":"-2146232832, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"A default document library could not be found in this site."}}}.

 

I attempted to bypass this issue by writing a YARP-based proxy that returns a fabricated DefaultDocumentLibrary ID. I also tried using some GUIDs retrieved from Microsoft Graph, which I thought could be substitutes for the DocumentLibrary ID, but none of these attempts were successful. Eventually, I hit a roadblock at step 5, retrieving the user's personal site global client policy, likely because the document library doesn't actually exist.

 

I also looked into a friend's OneDrive account (which dates back to 2006) and found that they have a DefaultDocumentLibrary, and interestingly, the API indicates that it was created on the 28th of September this year. On the other hand, my girlfriend, who has a fairly new Microsoft account, doesn't appear to have a my.microsoftpersonalcontent.com environment. I am unsure how to interpret these findings, but they might indicate some server-side changes or inconsistencies.

 

I have a substantial history with my current account and I also subscribe to Microsoft 365, utilizing around 30% of the 1 TB data allocation. Creating a new account is not a viable option as it would be highly inconvenient. Hence, I am keen on finding a solution that will resolve the syncing issue with my existing account.

 

I'm looking for advice on how to resolve this issue. Is there a way to create a DefaultDocumentLibrary for my personal OneDrive account, or is there another way to approach this problem? Any help would be greatly appreciated.

 

Thank you!

5 Replies

@Megasware128 

Welcome to Microsoft community, my name is Recep i'll be happy to help you today

 

As regards the sync issue

1. when you sign in your account on the web, are you able to see the content

2. Was the account converted to a business account at any point in time

3. when you sign in to Onedrive, what exactly is the error message you get when it's syncing.

Kindly provide any relevant screenshots that could be helpful.

 

If I have answered your question, please mark your post as Solved

If you like my response, please give it a Like :smile:

Appreciate your Kudos! Proud to contribute! :)

 

Hi @Deleted,

 

Thank you for responding.

 

1. Yes, I'm able to use the web interface and also the Android app normally.
2. I don't think so, although it is part of a couple of Microsoft Entra Tenants.
3. I don't visually get an error. It will be stuck in a sign in loop like shown in the screenshot. I noticed in fiddler this login loop is basically OneDrive trying to retrieve my DefaultDocumentLibrary ID but failing to do so. The error response is also in one of the screenshots:

 

Schermafbeelding 2023-11-06 225016.png

Schermafbeelding 2023-11-06 225558.png

Schermafbeelding 2023-11-06 225541.png

  

@Megasware128 

I  would suggest you try the following:

 

1.  Unlink Onedrive,

2. delete Onedrive from credential manager: 

To delete OneDrive from the Credential Manager, you can follow these steps:

  1. Press the Windows key + R to open the Run dialog box.
  2. Type control keymgr.dll and click OK.
  3. In the Credential Manager window, click Windows Credentials.
  4. Locate the entry for OneDrive and click on it.
  5. Click Remove to delete the credential.

3. uninstall and reinstall onedrive

 

If I have answered your question, please mark your post as Solved

If you like my response, please give it a Like :smile:

Appreciate your Kudos! Proud to contribute! :)

 

 

If I have answered your question, please mark your post as Solved

If you like my response, please give it a Like :smile:

Appreciate your Kudos! Proud to contribute! :)

 

@Deleted which entry should be OneDrive? It seems to be in alphabetical order but as you can see there is no OneDrive at O:

Megasware128_0-1699309979365.png

Also, I must mention I've tried these steps before and my issue is consistent across Windows devices.

@Megasware128 

Apologies for the inconvenience, i have suggested all the necessary troubleshooting method you can apply, but since the issue still persist, you might need to raise a support ticket to support.microsoft.com/contactus.

Ensure that it is your personal account you are signed in with when raising the request.

 

If I have answered your question, please mark your post as Solved

If you like my response, please give it a Like :smile:

Appreciate your Kudos! Proud to contribute! :)