How to Fix OneDrive Files Showing 0 KB Due to Long File Paths
Question details
Users are encountering a synchronization error in OneDrive where files display a size of 0 KB and cannot be moved, deleted, or opened due to excessively long file paths.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to sync or manage files stored in deeply nested folders or with exceptionally long file names.
- Observed behavior
- Files appear with a 0 KB size in the local directory and the system prevents moving, deleting, or opening them, citing that the file path is too long.
Verify that you can still access these files through the OneDrive web interface, and ensure important documents are backed up locally before making changes to your synchronization settings.
Reset the OneDrive Application
Resetting OneDrive forces the application to refresh its sync connections, which can often resolve 0 KB display issues and stuck synchronizations.
A standard reset clears temporary configurations and allows the client to re-evaluate the file paths without deleting your local files or cloud data.
Press the Windows key + R on your keyboard simultaneously to open the Run command window.
Type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset into the text box and press Enter.
Wait for the OneDrive icon in the system tray to disappear and reappear. Give the application sufficient time to complete a fresh synchronization check.

Shorten File and Folder Names
If resetting does not bypass the error, manually reducing the path length is required to stay within Windows and OneDrive limitations.
Reinstall the OneDrive Client
Reinstalling the client ensures you have the latest software version and resolves deeper application corruption issues.
Experience Hassle-Free File Management with WPS Office
If you are tired of complex synchronization errors and long file path limits, consider managing your documents with WPS Office. It provides an intuitive, lightweight environment with its own seamless cloud storage solutions.
- 1. Download and Install: Visit the WPS Office website to download the free installation package for your operating system.
- 2. Sign in to WPS Cloud: Launch the application and sign in to activate your free WPS Cloud storage for easy document syncing.
- 3. Edit and Sync: Open your existing Word, Excel, or PowerPoint files directly in WPS Office and let WPS Cloud handle the background saving.

Frequently Asked Questions
What is the maximum file path length for OneDrive?
In OneDrive and Windows, the entire file path—including the drive letter, folder names, and the file name itself—cannot exceed 400 characters. Going beyond this limit prevents files from syncing.
Why do my files show 0 KB even after checking my internet connection?
A file displays as 0 KB when OneDrive detects it but cannot process or download its actual contents. This usually happens when the file's path is too long or if there are repeated folder names causing an infinite loop in the sync engine.
How can I easily find which file paths are too long?
You can check the OneDrive sync client interface by clicking the OneDrive icon in your taskbar. It usually lists the specific files experiencing errors and will specify if a 'file path is too long'.
Will I lose my files if I reset OneDrive?
No, resetting the OneDrive application using the run command only restarts the background sync service and refreshes its connections. It does not delete your local files or your data stored in the cloud.




