A Microsoft file hosting and synchronization service.
The error occurs because OneDrive cannot both sync a SharePoint document library and use a shortcut to that same library at the same time. When the shortcut/sync relationship is broken, the bot falls back to saving in local folders (like Downloads) instead of the synced SharePoint location.
To restore saving to SharePoint via File Explorer, do the following on the PC where the bot runs:
- Remove any conflicting shortcuts and syncs
- Select the blue OneDrive cloud icon in the Windows taskbar notification area.
- Select Settings (gear icon) > Settings.
- Go to the Account tab and review the list of syncing sites.
- For the SharePoint library in question, select Stop sync to remove any existing sync relationship.
- In File Explorer, remove any shortcuts to that same SharePoint folder (right‑click the shortcut and select Remove shortcut). This only removes the shortcut, not the content.
- Re-establish a single sync method
- In a browser, open the SharePoint document library where the bot’s files should be stored.
- Decide on one of the following (not both):
- Use Sync to sync the library directly to File Explorer, or
- Use Add shortcut to My files to create a shortcut in OneDrive.
- If choosing Sync, click Sync in the SharePoint library and let OneDrive set up the synced folder in File Explorer.
- If choosing Add shortcut to My files, use that option and then let OneDrive sync the shortcut into File Explorer.
- Point the bot to the correct folder
- After sync completes, locate the correct SharePoint/OneDrive folder in File Explorer (the one now syncing without errors).
- Update the bot’s configuration so it saves files into that synced folder path instead of Downloads.
Once there is only one active sync/shortcut relationship for that SharePoint library and the bot is pointed to the synced folder, new documents should again upload to the SharePoint site instead of the local Downloads folder.
References: