Opening, sharing, and managing OneDrive-stored documents directly within Microsoft Teams
The issue is caused by problems with OneDrive shared folder shortcuts, not by the local OneDrive client itself. Some shared folder shortcuts in the My files section can become invalid or turn into .url internet shortcuts and then fail with errors when accessed from File Explorer.
For a durable fix, use these approaches:
- Verify that the underlying Teams/SharePoint folder still exists and that the user still has Edit access. If the folder was locked, archived, deleted, or permissions were changed by the owner/admin, the shortcut will continue to fail until access is restored.
- If the folder and permissions are correct but the shortcut is broken, remove the shortcut from OneDrive and re-add it from the original shared location:
- In OneDrive on the web, go to Shared.
- Open the shared Teams/SharePoint folder.
- Use Add shortcut to OneDrive to add it back to My files.
- Be aware of the current OneDrive service behavior:
- Some shared folder shortcuts in My files may temporarily appear as
.urlinternet shortcuts and open in a browser instead of as folders in File Explorer. - This is due to backend service changes. These
.urlshortcuts will automatically convert back to normal folder shortcuts when the service-side issue is resolved. - While in this state, the content remains accessible via OneDrive on the web (sign-in may be required).
- Some shared folder shortcuts in My files may temporarily appear as
- If the organization wants to avoid shortcut-related issues entirely, a SharePoint/OneDrive admin can disable the Add shortcut to OneDrive feature tenant-wide so users rely on direct sync of the Teams/SharePoint library instead of shortcuts:
- Run in SharePoint Online PowerShell:
Set-SPOTenant -DisableAddShortcutsToOneDrive $True - This prevents new shortcuts from being created and avoids future shortcut corruption, at the cost of losing that convenience feature.
- Run in SharePoint Online PowerShell:
- If File Explorer shows incorrect shortcut overlays or behavior after fixing shortcuts, restart Windows Explorer to refresh the OneDrive shell integration:
- Press CTRL + ALT + DEL → Task Manager → More details → under Processes, right-click Windows Explorer → Restart.
In summary, a permanent fix requires ensuring the shared folder and permissions are stable, recreating any broken shortcuts from the Shared view, and optionally disabling the shortcut feature at the tenant level if it continues to cause issues.
References: