When you work with SharePoint document libraries, you might see errors that stop file sync. Some errors come from permission settings, while others come from the sync engine itself. These two types of errors look similar but need different fixes. This article shows how to tell them apart and set up your system to avoid confusion.
Key Takeaways: Separate Permission Errors From Sync Errors
- OneDrive sync status icon in system tray: Shows a red X for sync errors and a yellow triangle for permission problems.
- SharePoint site permissions page: Check user access here to confirm if a permission error is real or a sync misreport.
- Sync client log file at %localappdata%\Microsoft\OneDrive\logs: Read the log to find the exact error code and distinguish between access denied and sync conflict.
Why Permission Errors and Sync Errors Look the Same
SharePoint and OneDrive sync use the same client application. When a file fails to sync, the client shows a generic error message. The message often says “You don’t have permission to sync this folder” or “Something went wrong.” These messages do not tell you the root cause.
Permission errors happen when the user does not have read or write access to a SharePoint site, library, or folder. Sync errors happen when the OneDrive sync engine cannot download or upload a file because of a conflict, a locked file, or a corrupted cache. The sync client treats both as a failure and shows the same status icon.
To fix the right problem, you must separate the two. The sync client can report a permission error even when the user has full access. This misreport occurs when the sync engine loses its authentication token or when a file is checked out by another user. Similarly, a real permission error can appear as a sync error if the sync client cannot read the site permissions correctly.
Steps to Set Up Error Separation
Follow these steps to configure your SharePoint and OneDrive environment so that permission errors and sync errors appear in different places. This setup uses the SharePoint admin center, OneDrive sync settings, and Windows Event Viewer.
Step 1: Enable Detailed Sync Logging
- Open OneDrive Settings
Right-click the OneDrive cloud icon in the system tray and select Settings. Go to the Sync and backup tab. - Turn on verbose logging
Under the Advanced section, check the box for “Collect logs automatically.” This setting makes the sync client write detailed error codes to the log file instead of generic messages. - Restart OneDrive
Click OK, then right-click the OneDrive icon and select Close OneDrive. Open OneDrive again from the Start menu. The new logging level takes effect immediately.
Step 2: Configure SharePoint Permission Alerts
- Open SharePoint admin center
Go to https://admin.microsoft.com/Sharepoint. Sign in as a SharePoint admin. - Go to Policies > Sharing
In the left navigation, select Policies and then Sharing. Under External sharing, set the permission level for each site. This step does not fix errors but ensures that permission changes are logged in the audit log. - Enable audit log for permission changes
In the SharePoint admin center, go to Reports > Audit log. Turn on audit logging if it is off. Permission changes now appear in the audit log with a separate event ID.
Step 3: Use Windows Event Viewer to Filter Errors
- Open Event Viewer
Press Windows key + R, typeeventvwr.msc, and press Enter. - Navigate to OneDrive logs
Expand Applications and Services Logs > Microsoft > Windows > OneDrive Sync. Select Operational. - Filter for error codes
In the right pane, click Filter Current Log. In the Event ID field, enter1001for permission errors and1003for sync errors. Click OK. The log now shows only the type of error you want to see.
Step 4: Set Up Separate Notification Channels
- Create a SharePoint alert for permission changes
On a SharePoint site, go to the library, click the ellipsis (three dots), and select Alert me. Set the alert to notify you when someone changes permissions. This alert goes to your email, separate from sync error notifications. - Turn off OneDrive toast notifications for sync errors
In OneDrive Settings > Sync and backup > Advanced, uncheck “Show sync notifications.” Sync errors will still appear in the log but will not generate pop-up messages that look like permission errors.
If Permission Errors Still Appear as Sync Errors After Setup
OneDrive Reports “Access Denied” but the User Has Full Permissions
This situation happens when the user’s authentication token has expired. The sync client tries to access the SharePoint site but the token is invalid. The client displays “Access Denied” even though the user still has permissions. To fix this, sign out of OneDrive and sign in again. Right-click the OneDrive icon, select Settings > Account > Unlink this PC. Then sign in again with the same work or school account.
Sync Error Says “File in Use” but No One Has the File Open
This error can occur when a previous sync left a lock on the file. The lock persists even after the user closes the file. The sync client reports a sync error, but the actual problem is a stale lock. To resolve this, use the SharePoint admin center to force a check-in. Go to the document library, select the file, and choose Check In from the menu. If no check-in option appears, the file is not checked out. In that case, clear the sync cache by stopping sync and removing the local folder.
Permission Error Appears After a Site Migration
When a SharePoint site is moved to a different region or renamed, the sync client may continue to use the old URL. The old URL no longer has the user’s permissions, so the client shows a permission error. To fix this, remove the site from OneDrive sync and add it again using the new URL. Go to OneDrive Settings > Account > Choose folders. Click Unsync for the affected library, then click Sync files and select the same library from the new site.
Permission Error vs Sync Error: Key Differences
| Item | Permission Error | Sync Error |
|---|---|---|
| Typical error message | “You don’t have access to this folder” | “Something went wrong while syncing” |
| Event Viewer ID | 1001 | 1003 |
| Root cause | User lacks read or write permission on the SharePoint site or library | File conflict, file lock, corrupted cache, or temporary network issue |
| Typical fix | Add the user to the SharePoint site or library permissions | Clear the sync cache or check in the file |
| Notification channel | SharePoint alert (email) or admin center | OneDrive sync status icon or log file |
Conclusion
You can now identify permission errors and sync errors by looking at the Event Viewer filter and the OneDrive log file. The setup steps in this article let you see each error type in a separate view. Start by enabling verbose logging in OneDrive and creating a SharePoint alert for permission changes. Use Event Viewer with event IDs 1001 and 1003 to isolate the root cause. If you still see mixed errors, check the authentication token by signing out and back into OneDrive.