How to Recover a Zero-Byte or Corrupted File in OneDrive
Question details
The user needs to recover a OneDrive file that has become empty (zero bytes), cannot be opened, and has lost its version history.

- Product
- OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to access or open a previously working file stored and synchronized via OneDrive.
- Observed behavior
- The file size displays as zero bytes, the document fails to open, and the native version history is missing or inaccessible.
Ensure you are logged into the correct Microsoft account associated with the missing file, and pause any current OneDrive syncing to prevent further data overwriting.
Use OneDrive Restore to Roll Back Your Account
If individual file version history is missing, restoring your entire OneDrive to a previous point in time can help recover the uncorrupted file.
The OneDrive Restore feature allows you to undo all the actions that occurred on any files and folders within the last 30 days. This is particularly useful for recovering from mass corruption, ransomware, or unexplained zero-byte file issues.
Log in to your OneDrive account via a web browser and click the Settings (gear) icon in the top right corner.
Click on 'Options' and then navigate to 'Restore your OneDrive' from the left-hand navigation menu.
Select a date from the dropdown menu before the file became zero bytes, review the list of changes, and click 'Restore'.

Check Recycle Bins and Local File Properties
An uncorrupted version of the file might still exist in your computer's recycle bin or as an older local copy.
Contact Microsoft Support for Advanced Recovery
If all local and cloud recovery options fail and the file contains critical data, Microsoft Support may be able to retrieve a backend backup.
Try WPS Office for Reliable Document Management and Auto-Backup
Tired of dealing with file corruption or cloud syncing issues? WPS Office offers a lightweight, highly compatible alternative to Microsoft Office, complete with its own robust WPS Cloud for secure auto-backups and seamless version history.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your device.
- 2. Enable Auto-Backup: Open the application, sign in to activate WPS Cloud, and turn on the auto-backup feature in the settings.
- 3. Edit Your Documents Safely: Open your existing Microsoft Office files directly in WPS Office to enjoy secure, automatic saving and version control.

Frequently Asked Questions
Why did my OneDrive file suddenly become zero bytes?
This issue typically occurs due to incomplete sync processes, network interruptions during a background save, conflicting software locking the file, or local malware that corrupts the file data before it fully uploads to the cloud.
Can I recover a zero-byte file if its version history is empty?
If the individual version history is cleared or inaccessible, your best option is using the 'Restore your OneDrive' feature to roll back your entire account to a date before the corruption happened. If that is unavailable, checking local machine previous versions or contacting support are your remaining options.
How do I prevent OneDrive files from corrupting during syncs?
To minimize sync corruption, ensure a stable internet connection while working on cloud documents, avoid forcing your computer to shut down while OneDrive is actively syncing, and keep your OneDrive desktop application up to date.




