Unable to share onedrive folder

Parag Thakkar 10 Reputation points
2026-03-31T09:32:32.76+00:00

Hi..

I am trying to share a folder on onedrive web but I am getting the following issue:

"Unable to get the link. Please try again later. " On clicking more details it shows "Data Sanitized"

My onedrive folder is located in D drive, where I have added another folder for which I need the backup...

In my system tray it shows 3571 files will be backed up when closed...But all these files have been deleted and are no longer present in the system..

So can you help me to resolve this.

Microsoft 365 and Office | OneDrive | For home | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Jeronimo Fuerte 44,960 Reputation points Independent Advisor
    2026-03-31T21:34:38.7533333+00:00

    Hi! The issue you are experiencing with the "Data Sanitized" error and the thousands of phantom files pending backup usually indicates that your OneDrive sync cache has become corrupted. To resolve this, the first step is to perform a full reset of the OneDrive desktop client, which will clear the localized cache without deleting any of your actual data. You can do this by pressing the Windows Key and R simultaneously to open the Run dialog, then pasting %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and pressing Enter. Once the OneDrive cloud icon reappears in your system tray, allow it a few minutes to resync your current folder structure, which should clear the 3571 deleted files from the queue.

    Was this answer helpful?

    1 person found this answer helpful.

  2. FireTea 0 Reputation points
    2026-08-04T15:43:24.48+00:00

    I ran into this problem myself, it would happen whenever I try to share a file with an external user.

    In this case, in our SharePoint Admin Centre > Policies > Sharing, we had OneDrive sharing set to "New and existing guests". This means you can only share files with users who are guests in your tenancy. If they are not guests it will try to invite them.

    However, at the same time we had restricted the permission to invite guests into the tenancy. This is defined i the Azure Portal > Entra ID > External Identities > External Collaboration Settings. This was set to "Only users assigned to specific admin roles can invite guest users".
    We had already setup a Security Group that had the required 'Guest inviter' role, you can set one up as per this guide.

    Once I added myself to this group, I could share files with external users again.

    Once the external user is a guest, other users can also share files with them without additional permissions. Up to you if you want to grant all users invite access, or retain the permission within a select group.

    Was this answer helpful?

    0 comments No comments

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.