Home › Fix OneDrive sync errors
TroubleshootingFix 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.
Fix a Stuck Encrypted File in Three Checks
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.
| Applies to | OneDrive for Windows 11 and 10 sync client |
|---|---|
| Time needed | 5 to 20 minutes |
| Difficulty | Easy to moderate |
| Cost | Free |
| Needs admin | No |
| Last verified | November 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.
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.
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 FullNameCryptomator 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.

Encrypted Upload Errors by Symptom
| Symptom | Cause | Fix |
|---|---|---|
| Red cross on a .7z | Name contains a rejected character | Rename with letters, numbers and hyphens |
| Archive never starts uploading | Name begins with ~$ or equals a reserved word | Rename, then restart sync |
| Error only on the PC, file fine online | Local path past 260 characters | Move the container to a shorter folder |
| Error in the cloud | Decoded path past 400 characters | Shorten folder names above the file |
| Upload fails for a very large vault | Single file over 250 GB | Split into several archives |
| Many small files fail at once | Browser copy limited to 2,500 files | Use the sync client, not the website |
| Locker will not close | Another app holds a file open | Close it and lock again |
| Cloud shows locked but files are older | Lock toggle set to lock on exit | Check 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.
Where to Go After the Sync Fix
With the upload working, decide how the file will travel and how you will recover it. Sharing and key storage are the next two decisions, and each is easier before the first handoff than after.
Continue with sending the encrypted file through OneDrive or storing passwords and recovery keys.