logo
search
OneDrive File Issues

How to Fix OneDrive Sync Errors for Temporary LibreOffice Files

Huma Ashraf ChHuma Ashraf Ch Oct 10, 2026 870 views

Question details

The user needs to resolve a OneDrive synchronization error triggered by invalid file names from temporary LibreOffice lock files or conflicts from dual cloud syncing.

How to Fix OneDrive Sync Errors for Temporary LibreOffice Files
Product
OneDrive
Device & OS
Windows
Scenario
Synchronizing a local document folder to OneDrive while using LibreOffice.
Observed behavior
OneDrive rejects temporary lock files (e.g., .~lock.filename.odt#) because the naming convention is incompatible with OneDrive sync. Errors also arise when the same folder is synced with both Google Drive and OneDrive.
Before you start

Ensure you have saved all your ongoing work and completely closed the LibreOffice application before attempting to resolve the synchronization issues.

Solution 1Recommended

Delete or Rename the Lingering Lock File

Use this solution if a temporary LibreOffice file is preventing OneDrive from syncing your folder properly.

LibreOffice automatically creates temporary lock files to prevent simultaneous editing. Usually, these files disappear when you close the document. If the application crashes or fails to clean up, the lock file remains and blocks OneDrive synchronization.

1
Close LibreOffice completely

Save your work and exit LibreOffice. Check if the temporary lock file (ending in #) automatically disappears from the document folder.

2
Delete or rename the file manually

If the file remains after closing the application, right-click the .~lock file and select 'Delete' or 'Rename' to remove the incompatible characters.

3
Check OneDrive sync status

Click the OneDrive icon in your taskbar, navigate to the settings menu, and select 'View sync problems' to confirm the error is resolved.

Delete or Rename the Lingering Lock File
Sync Restored: Once the incompatible lock file is removed, OneDrive will automatically resume syncing your document folder.
Free Microsoft Office alternative

Switch to WPS Office to Avoid File Sync Conflicts

If you frequently encounter temporary file conflicts and sync errors while managing your documents, consider switching to WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, ensuring smooth document management without generating complex lock files that disrupt OneDrive or Google Drive.

  1. 1. Download and Install: Visit the official WPS website to download the free installer and follow the on-screen instructions to set it up.
  2. 2. Open Your Documents: Launch WPS Office and directly open your existing Word, Excel, or PowerPoint files with perfect formatting preservation.
  3. 3. Save and Sync Smoothly: Save your documents in your OneDrive folder; WPS Office handles background saving smoothly without triggering invalid filename errors.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Seamlessly integrates with local folders and cloud storage services without lock-file sync errors.Lightweight design ensures fast installation and smooth performance on Windows.Free alternative to Microsoft Office with a familiar user interface making document migration effortless.
microsoft office alternative - wps office

Frequently Asked Questions

Why does LibreOffice create a .~lock file?

LibreOffice creates temporary hidden lock files to track who is currently editing a document. This prevents multiple users from making conflicting changes at the same time. The file is meant to be automatically deleted once the document is closed.

Can I sync one local folder to both OneDrive and Google Drive?

It is highly discouraged. Synchronizing the same local folder with two different cloud services simultaneously often leads to file lock issues, duplicated conflict files, and continuous sync errors.

How do I find out which specific file is causing the OneDrive sync error?

Click the OneDrive cloud icon in your Windows taskbar. If there is an error, you will see a warning message. Click on 'View sync problems' to see a detailed list of exactly which files are failing to upload.