OneDrive File Issues

Fix ODF Files Becoming Zero Bytes in OneDrive Sync Folders

Algirdas JasaitisAlgirdas Jasaitis Nov 3, 2026 871 views

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.

How to Fix ODF Files Becoming Zero Bytes in OneDrive Sync 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 you start

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.

Solution 1Recommended

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.

1
Open OneDrive settings

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.

2
Navigate to the Office tab

In the OneDrive Settings window, click on the 'Office' tab at the top to view file collaboration options.

3
Disable Office file sync

Uncheck the box next to 'Use Office applications to sync Office files that I open'.

4
Save and test

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.

Disable Office Application Sync in OneDrive Settings
Organizational Deployment: For enterprise environments, IT administrators can distribute this OneDrive setting change to multiple workstations using Windows Group Policy (GPO).
Free Microsoft Office alternative

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. 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. 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. 3. Open and Edit Safely: Double-click your documents in any synchronized folder to safely edit and save them without risking zero-byte corruption.
Highly compatible with Microsoft Office formats (.docx, .xlsx, .pptx) and OpenDocument formats.Built-in lightweight cloud syncing via WPS Cloud to prevent file synchronization conflicts.Familiar user interface allowing for a seamless transition from other office suites.Free, lightweight, and fast to launch on any operating system.
microsoft office alternative - wps office

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.