How to Troubleshoot SharePoint Migration and OneDrive Sync Failures
Question details
The user is experiencing technical difficulties migrating a local file server to SharePoint, resulting in folder limit errors, OneDrive sync issues, and TPM sign-in errors.

- Product
- Microsoft SharePoint and OneDrive
- Device & OS
- not provided
- Scenario
- Migrating a local file server to Microsoft 365 SharePoint and synchronizing the migrated files via the OneDrive desktop client.
- Observed behavior
- The migration process encounters folder capacity limits, the OneDrive client fails to sign in due to TPM errors, and synchronization problems persist despite an open support case.
Gather your migration error logs, document the affected site URLs, and ensure you have global administrator privileges before attempting to modify migration batches or troubleshoot TPM keys.
Escalate the Microsoft Support Case
Because migration blockers and TPM sign-in errors often involve complex tenant-side glitches, providing detailed logs to Microsoft Support is the most effective way to resolve enterprise-level issues.
Microsoft Support requires specific diagnostic data to escalate migration failures. Providing this data via a secure channel ensures your ticket is routed to the correct engineering team.
Compile a list of the affected SharePoint site URLs, the specific sizes of the failing folders, and any distinct error codes encountered during the file transfer.
On the affected client machines, navigate to the OneDrive settings and locate the diagnostic logs to identify exact synchronization failure points.
If you are on the Microsoft Community forum, access your private messages from the top-right corner to share your existing support ticket number and logs directly with a moderator.

Resolve Folder Limits and File Constraints
Adjust your file server's directory structure prior to migration to prevent triggering SharePoint limits and OneDrive sync failures.
Try a Lightweight Alternative for Your Daily Office Tasks
Enterprise cloud migrations can be complex and prone to sync errors. If you need a reliable, fast, and easy-to-use solution for your daily document management without the overhead, consider WPS Office. It provides robust editing capabilities and flawless compatibility with standard office formats.
- 1. Download and Install: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Sign In to WPS Cloud: Create a free account to access 1GB of built-in cloud storage for simple, error-free document syncing.
- 3. Open and Edit Files: Drag and drop your existing Microsoft Word, Excel, or PowerPoint files directly into WPS Office to continue working without formatting loss.

Frequently Asked Questions
What is the maximum sync limit for SharePoint and OneDrive?
Microsoft recommends syncing no more than 300,000 files across all document libraries combined. Exceeding this limit can cause the OneDrive sync client to hang, crash, or fail completely.
How do I fix a TPM error when signing into OneDrive?
TPM (Trusted Platform Module) errors usually require clearing your device's TPM credentials. You can do this by opening the Windows Defender Security app, navigating to Device Security, selecting Security processor troubleshooting, and clicking Clear TPM.
Why does the SharePoint Migration Tool fail on certain files?
The migration tool may fail if files have path lengths exceeding 400 characters, contain unsupported invalid characters in their names, or if the specific file types are blocked by the destination SharePoint administrator.




