A Microsoft file hosting and synchronization service.
The context only documents one relevant platform behavior: for a given SharePoint Online document library, users cannot both sync the library and also use Add shortcut to OneDrive/My files for folders in that same library.
Specifically, when a user has already created a shortcut to a folder from a SharePoint Online library in OneDrive, attempting to sync that same library (or vice versa) is unsupported and leads to errors. This is by design:
- A SharePoint document library cannot be both:
- synced via the OneDrive sync app (Sync), and
- exposed via Add shortcut to My files / Add shortcut to OneDrive.
To mitigate issues related to shortcuts:
- For affected users, remove either:
- the existing OneDrive sync for that SharePoint library, or
- the existing shortcut(s) created via Add shortcut to OneDrive/My files.
- After removing one of the two, retry the operation (either re‑sync the library or re‑add the shortcut, but not both for the same library).
- If the organization wants to avoid shortcut usage entirely and rely only on sync, a SharePoint/OneDrive admin can disable the feature tenant‑wide:
Set-SPOTenant -DisableAddShortcutsToOneDrive $True
Because the platform does not allow simultaneous use of both mechanisms on the same library, ensuring that each user uses only one of them per library is the supported configuration and avoids these shortcut‑related failures.
References: