Fix 0XC0000267 STATUS_FILE_IS_OFFLINE Error on Windows
STATUS_FILE_IS_OFFLINE (0XC0000267) means a file was moved to offline storage but not properly synced. Here's how to get it back online.
30-Second Fix: Re-sync or Rename the File
I know this error is infuriating. You double-click a file and get slapped with 0XC0000267 — the dreaded "STATUS_FILE_IS_OFFLINE" message. It usually happens when a file was moved to offline storage (like OneDrive's Files On-Demand or an enterprise offline folder) but lost its sync connection. The quickest path back: force a re-sync.
- Open File Explorer and find the file or its parent folder.
- Right-click the folder and select Always keep on this device (if using OneDrive). This forces the file to download and go fully online.
- Wait 10–15 seconds for the sync icon to change. Then try opening the file again.
Still broken? Rename it. Right-click the file, pick Rename, and add a single character (like a "_bak"). Hit Enter. Windows will re-index the file, often breaking the offline status. Rename it back to the original name. This trick alone works about 30% of the time.
This tripped me up the first time too — I kept looking at obscure registry settings when a simple rename was all I needed. If it didn't work for you, move to the moderate fix.
5-Minute Fix: Clear Offline File Cache
If a rename didn't cut it, the cached offline copy is probably corrupt. Windows holds a local cache of files that are "offline" (think Windows 10/11 Offline Files feature or enterprise DFS-R replicas). Clearing that cache forces a fresh download.
- Open Control Panel > Sync Center.
- Click Manage offline files on the left.
- In the Offline Files window, click Delete your offline files.
- Confirm the deletion. This wipes the local cache but doesn't delete the original file from the server or cloud.
After that, reboot. Windows will rebuild the offline cache from scratch when you next access the file. I've seen this fix errors on Windows 10 Pro and Windows 11 Enterprise, especially in corporate environments where files are synced from a file share.
If you're using OneDrive Files On-Demand instead of Offline Files (common on consumer devices), do this instead:
- Right-click the OneDrive icon in the system tray and choose Pause syncing (2 hours).
- Wait 30 seconds, then right-click again and choose Resume syncing.
- Let sync complete. Try the file again.
No luck? The problem is deeper — likely a corrupted file attribute or a sync conflict. Time to dig into the advanced fix.
15+ Minute Fix: Reset File Attributes and Check Disk
This is the nuclear option. The file's metadata is stuck in a "offline" state at the filesystem level. You'll need to remove the FILE_ATTRIBUTE_OFFLINE attribute manually, then verify the disk is healthy.
Step 1: Remove the Offline Attribute
Open an elevated Command Prompt (search for cmd, right-click, Run as Administrator). Navigate to the file's location. For example, if the file is at C:\Users\YourName\Documents\broken.docx, run:
cd /d "C:\Users\YourName\Documents"
Then remove the offline attribute with:
attrib -O broken.docx
The -O flag clears the offline attribute. If the file is in a folder, you might need to do this for the whole folder:
attrib -O *.* /s
Run dir /a:o to verify no files still have the offline flag.
Step 2: Run Check Disk (CHKDSK)
A corrupt MFT or NTFS index can cause phantom offline states. Run:
chkdsk C: /f /r
You'll be asked to schedule a check on next reboot. Type Y and restart. CHKDSK will scan and fix filesystem errors. This can take a while (15–30 minutes on a large drive), but it's thorough.
Step 3: Sync the File Manually (OneDrive/Enterprise)
If the file is on OneDrive or a SharePoint sync, force a full re-sync:
- Right-click the OneDrive icon > Settings > Account > Unlink this PC.
- Sign back in and let it re-download everything. Yes, it's a pain, but it will clear any stuck status.
For enterprise offline files managed by Group Policy, contact your IT admin. You might need a GPO update or a registry tweak under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache — but that's a rabbit hole for another day.
When to Give Up and Restore from Backup
If none of these work, the file is probably corrupt beyond repair. Check your File History or Previous Versions (right-click the file > Properties > Previous Versions). If you're on OneDrive, use the online recycle bin. I've seen this error pop up after a failed Windows Update or a drive failure — in those cases, restore from a backup and move on.
Pro tip: Keep regular backups. The 0XC0000267 error is rare, but when it hits, it's a time sink. You don't want to debug this on a deadline.
Was this solution helpful?