Home › Fix OneDrive sync errors

Troubleshooting

Fix OneDrive Sync Errors on Encrypted Files, Archives and Vaults

An encrypted container that will not upload is usually blocked by its name, its path or its size, not by the encryption. This page lists the causes in the order to check them and the quickest fix for each one, for 7-Zip archives, Cryptomator vaults and lockers.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20268 min read
Illustrative sync log listing encrypted files with invalid character and path length errorsVault viewMain menuOverviewSync logNamesPathsHelpFilter sync issuesSync statusreport?.7zInvalid characterbackup-archive-long-name.7zPath too longtaxes-2026.7zUploadedcontracts.7zPendingkeys.txtUploadedCharacters to avoid"*:<>?/\|Spaces at the start or end also failCloud path lengthLimit: 400 charactersA longer path stops the uploadIllustrative preview

Fix a Stuck Encrypted File in Three Checks

Quick answer

Start with the file name, then the full path length, then the size. OneDrive rejects names containing " * : < > ? / \ |, any name with a space at the start or end, and paths over 400 characters. Rename or shorten the encrypted container, then resume sync.

At a glance
Applies toOneDrive for Windows 11 and 10 sync client
Time needed5 to 20 minutes
DifficultyEasy to moderate
CostFree
Needs adminNo
Last verifiedNovember 2026

This troubleshooting page sits under our short sync-problems summary in the main guide. If you have not encrypted anything yet, start with the step-by-step tutorial.

Names OneDrive Will Not Accept for Encrypted Containers

Archive and vault names fail more often than the encryption itself. OneDrive bars nine punctuation characters, spaces at either end of a name, and reserved words, so a name copied from a client folder can stop the whole upload.

Characters that OneDrive does not allow in file and folder namesNames that stop a OneDrive upload"*:<>?/\|Also refused: a leading or trailing space, and names such as CON, PRN, AUX or NUL.
The nine punctuation characters OneDrive rejects in file and folder names.

Reserved names include .lock, CON, PRN, AUX, NUL, COM0 to COM9, LPT0 to LPT9, desktop.ini and anything containing _vti_. A folder called forms cannot sit at the root of a library. Pick a naming habit once, such as year-client-topic with hyphens, and keep it for every archive.

How to Shorten a Path That Breaks the Upload

Count the whole path, not just the file name. OneDrive and SharePoint allow 400 characters in total, each segment may reach 255, and Windows tools stop at 260, so nesting archives inside long project folders is the usual trigger.

Bar showing that cloud paths may use up to 400 characters while Windows tools stop at 260Where the 400 character limit appliesOneDrive rootFolders and file name in the cloud: 400 charactersWindows File Explorer and Office desktop apps stop at 260 characters, so a deep path can work online and fail on the PC.
Cloud path allowance compared with the 260-character Windows limit.

Run the short script below in PowerShell to list paths near the Windows limit. It flags anything over 240 characters, which leaves a margin for the sync root.

Get-ChildItem -Path "$env:OneDrive" -Recurse -ErrorAction SilentlyContinue |
  Where-Object { $_.FullName.Length -gt 240 } |
  Select-Object FullName

Cryptomator users should know that the vault settings show a file-name shortening threshold of 220 characters, so very long original names are shortened inside the vault rather than rejected.

When a Locked Cloud Looks Like a Sync Fault

A cloud row set to “Will lock on exit” is not locked yet, while a row marked “Is locked” already is. Reading the toggle first saves time, because sync continues in both states.

Cloud Secure’s lock toggles list Dropbox, Google Drive, Microsoft OneDrive and Box with a View button beside each. A 2017 launch press release describes keeping files synced while locked, and the product page repeats that the lock holds during background syncing.

If a file still fails, the cause sits in its name or path. Work through the table above before reinstalling anything. A lock on the PC cannot repair a bad name.

Cloud Secure lock toggles for Dropbox, Google Drive, OneDrive and Box with Will lock on exit and Is locked labels

Encrypted Upload Errors by Symptom

Encrypted-file sync problems, causes and fixes
SymptomCauseFix
Red cross on a .7zName contains a rejected characterRename with letters, numbers and hyphens
Archive never starts uploadingName begins with ~$ or equals a reserved wordRename, then restart sync
Error only on the PC, file fine onlineLocal path past 260 charactersMove the container to a shorter folder
Error in the cloudDecoded path past 400 charactersShorten folder names above the file
Upload fails for a very large vaultSingle file over 250 GBSplit into several archives
Many small files fail at onceBrowser copy limited to 2,500 filesUse the sync client, not the website
Locker will not closeAnother app holds a file openClose it and lock again
Cloud shows locked but files are olderLock toggle set to lock on exitCheck the toggle state in Cloud Secure

Persistent errors after all checks are worth a call to Microsoft Support, which also offers a Support and Recovery Assistant for OneDrive sync trouble. For a problem inside one of our tools, the developer’s contact page is the route.

Sync Error Questions Answered

Why does OneDrive say my encrypted file name is invalid?

The name probably holds a character OneDrive rejects, such as a question mark, colon, asterisk, quote, slash or pipe, or it starts or ends with a space. Microsoft’s support page also bars names like CON, NUL and desktop.ini. Rename the container with letters, numbers and hyphens, then let the sync client retry.

Why is my .7z archive stuck on sync pending?

Three causes cover most cases: a rejected character in the name, a path longer than 400 characters in the cloud, or a file near the 250 GB per-file limit. Pause and resume sync, then check the activity centre for the named error. Renaming or shortening the path usually clears it.

How long can a OneDrive path be?

Microsoft lists 400 characters for the full decoded path in OneDrive and SharePoint, 255 characters for any single folder or file name, and 520 characters for the sync root plus path. Windows File Explorer and Office desktop apps stop at 260, so shorter is safer.

Can OneDrive sync a Cryptomator vault?

Cryptomator’s site names OneDrive among the clouds it supports and says vaults work in any cloud. The vault is a normal folder of encrypted files, so OneDrive syncs it like any other folder. Keep the vault locked while a large sync runs, and keep vault paths short.

Does locking OneDrive with Cloud Secure stop syncing?

No. Cloud Secure’s product page says files stay locked while background syncing continues, with no need to open the cloud account first. If a file still fails to sync, look at the name and path first, since a lock toggle is rarely the cause.

What does a tilde-dollar file mean in OneDrive?

Microsoft does not allow file names that begin with ~$, because Office creates them as temporary owner files while a document is open. If one blocks a sync, close the Office app, then delete or rename the stray file. Never name your own archive with that prefix.

Keep the Fix Simple

Name containers plainly, keep paths short and let the sync client run. The encryption tools below behave the same once the names are clean.