Fix ODF Files Becoming Zero Bytes in OneDrive Sync Folders
Question details
Users need to resolve an issue where OpenDocument Format (ODF) spreadsheets and presentations are cleared and reduced to zero bytes when saved in local OneDrive synchronized folders.

- Product
- OneDrive
- Device & OS
- not provided
- Scenario
- Opening and saving ODF files using applications like LibreOffice within a local directory that is synchronized by Microsoft OneDrive.
- Observed behavior
- The file content is completely cleared, and the file size is reduced to 0 bytes upon synchronization.
Before modifying your OneDrive synchronization settings, check your OneDrive version history online to recover your ODF files and back them up to a non-synchronized local folder to prevent permanent data loss.
Disable Office Application Sync in OneDrive Settings
Disabling the feature that uses Office applications to sync opened files prevents the synchronization conflict that clears ODF file contents.
This issue typically occurs due to a conflict between Microsoft Office synchronization protocols and third-party software (like LibreOffice) handling OpenDocument formats. Turning off the specific Office sync feature in OneDrive stops the interference.
Click the OneDrive cloud icon located in your Windows system tray or taskbar, click the gear icon (Help & Settings), and select 'Settings' from the menu.
In the OneDrive Settings window, click on the 'Office' tab at the top to view file collaboration options.
Uncheck the box next to 'Use Office applications to sync Office files that I open'.
Click 'OK' to apply the changes. Open, modify, and save a test ODF file in your synchronized folder to verify the zero-byte issue is resolved.

Recover Affected ODF Files Using OneDrive Version History
If your files have already been reduced to zero bytes, you can restore their previous intact state using OneDrive's built-in version history feature.
Use WPS Office for Seamless Cloud Synchronization and Format Compatibility
Avoid synchronization conflicts and file corruption by switching to WPS Office. It provides excellent compatibility with multiple file formats and features seamless cloud integration without the heavy background processes that cause zero-byte errors.
- 1. Download and Install WPS Office: Visit the official WPS website, download the free installer, and follow the on-screen prompts to set it up on your device.
- 2. Set as Default Application: During installation or in your system settings, set WPS Office as the default application for Word, Excel, PowerPoint, and ODF files.
- 3. Open and Edit Safely: Double-click your documents in any synchronized folder to safely edit and save them without risking zero-byte corruption.

Frequently Asked Questions
Why do my ODF files become 0 bytes in OneDrive?
This happens due to a synchronization conflict when the 'Use Office applications to sync Office files' setting is enabled in OneDrive while you are opening and modifying OpenDocument files with third-party software.
Does unchecking the Office sync setting affect my other files?
Yes, disabling this setting resolves the zero-byte issue but may disable AutoSave and real-time co-authoring features for Microsoft Office documents stored in your OneDrive.
Can I recover a file after it has turned into zero bytes?
Yes, you can recover the file by right-clicking the affected document in your OneDrive folder, selecting 'Version history', and restoring a previous version before the corruption occurred.




