Restoring files from an image-based backup or offline drives of a OneDrive folder can result in files appearing corrupted or inaccessible. This issue is often due to OneDrive's Files On-Demand feature, which stores placeholder files instead of the actual data locally. Additionally, even when files are fully downloaded, they may retain reparse point attributes that can prevent the files from opening correctly.
This problem can occur with image-based backup solutions or when restoring files from offline drives if the backup includes placeholders instead of the actual file data. The following software are examples of those which may be impacted.
- Acronis True Image or Cyber Protect
- Macrium Reflect
- Veeam Backup & Replication
- Carbonite
- Recuva
- Windows Explorer may even be impacted
The file format and extension of 'EMPLOYEE LIST.XLS' don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?
Adobe Acrobat could not open 'Payment Confirmation.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
Sorry, Photos can't open this file because the format is currently unsupported, or the file is corrupted
Ensure that the files themselves contain actual data:
-
If the file size is
0 KB
: This may indicate one of two issues:- The file has not been downloaded and is only available online due to OneDrive's Files On-Demand feature. In this case, you must download the file to your local storage before restoring it from a backup.
- Alternatively, it could mean the file was not restored correctly through the backup software. For example, in Acronis True Image, simply copying and pasting the file via Windows Explorer will not work. Instead, open Acronis True Image, open the backup, navigate to the Recovery tab, and restore the file properly through the software interface. Once done, proceed with reparse point attribute removal.
-
If the file size is greater than
0 KB
: The file has been downloaded locally and contains data, but it may still appear inaccessible due to reparse point attributes. In this case, proceed with reparse point attribute removal.
If the file is downloaded and contains data but remains inaccessible, the issue is likely caused by a reparse point. To resolve this, copy and paste the functions from the Remove-ReparsePoints.ps1
script into PowerShell.
- Use
Remove-ReparsePoint
to remove the reparse point attribute from an individual file:
Remove-ReparsePoint -Path "C:\Path\To\File"
- Alternatively, use
Remove-ReparsePointsInDirectory
to remove reparse points from all files in a directory, with an optional-Recurse
parameter to include subdirectories:
Remove-ReparsePointsInDirectory -Path "C:\Path\To\Directory" -Recurse
- After removing the reparse point, the file should be accessible as a regular file.
- If issues persist, verify the backup integrity and ensure the OneDrive files were fully downloaded before the backup process.
By removing the reparse point, you ensure that the restored OneDrive files can be accessed correctly, resolving issues caused by placeholder files or reparse attributes.