До основного вмісту

← До всіх статей

The file exists but is corrupted or will not open

Ця стаття поки що доступна лише англійською мовою.

A file can still have the correct name and size but contain damaged or incomplete data.

That is different from a deleted file. The safest first question is not “How do I repair this file?” but:

“Is there an intact older copy I can restore?”

Before experimenting, preserve the damaged file. If possible, make a copy and perform repair attempts on the copy rather than repeatedly changing the only remaining original.

Check Version History first

If the file is stored in OneDrive or SharePoint, check Version history.

Microsoft states that Version History can show and restore older versions of files stored there. It works with many file types, including Microsoft 365 documents, PDFs, CAD files, photos, and videos. [R1]

On OneDrive.com, select the file, open Version history, inspect an earlier version, and choose Restore if it contains intact data. [R1]

This is often safer than trying to repair damaged contents because it returns to a known earlier copy.

Check File History for a local file

If File History was enabled before the corruption occurred, Windows may contain an earlier copy.

In File Explorer, go to the folder containing the file, right-click the file or folder, and choose Restore previous versions. [R2]

Microsoft allows you to preview an older version and restore it to another location. Using Restore to... avoids immediately replacing the current file. [R2]

File History only helps if a backup existed before the damage.

Can the application repair the file?

Sometimes.

Microsoft Word, Excel, and PowerPoint provide an Open and Repair command for damaged Office files. Microsoft states that a file may be damaged so that it cannot open normally, while Open and Repair may still recover it. [R3]

For supported Office files:

  1. Open the Office application.
  2. Choose File → Open → Browse.
  3. Select the damaged file.
  4. Open the arrow beside Open.
  5. Choose Open and Repair. [R3]

For a damaged Excel workbook, Microsoft also provides an Extract Data option if normal repair cannot recover the workbook. [R4]

These are application-specific recovery features. They do not imply that Windows can generically repair every damaged PDF, image, archive, database, or media file.

What if many files are becoming corrupted?

One damaged document can be an application or file-specific problem.

Repeated corruption across unrelated files deserves a broader storage check.

Windows can report critical storage-health states such as reliability degraded or a drive becoming read-only. Microsoft recommends backing up data when such a warning appears. [R5]

If multiple files become unreadable, the drive repeatedly disconnects, or new files also become corrupted, protect important data before spending time repairing individual files.

A successful repair of one document does not prove the storage device is healthy.

Should I delete the damaged file after recovery?

Not immediately.

Keep the original until the recovered replacement has been verified.

Open the recovered file and check the contents that matter: pages, worksheets, formulas, images, video duration, archive members, or other application-specific data.

If an older version restores successfully, save a verified copy separately before deciding whether the corrupted original is still needed.

What should I do now?

  1. Preserve the corrupted file before modifying it.
  2. Check OneDrive or SharePoint Version History.
  3. Check File History / Restore previous versions.
  4. Use the application's own repair feature where one is documented.
  5. Verify the recovered contents, not merely the filename.
  6. If multiple unrelated files are corrupting, check storage health and protect other data.
  7. Keep the original until recovery has been confirmed.

The objective is to recover trustworthy contents. Making an application stop showing an error is not enough if the recovered file is incomplete.


Джерела

  1. Restore a previous version of a file stored in OneDrive — Microsoft Support (2026-09-20)

    “you can see and restore older versions of your files”

    https://support.microsoft.com/en-us/onedrive/restore-a-previous-version-of-a-file-stored-in-onedrive

  2. Backup and restore with File History — Microsoft Support (2026-09-20)

    “restore a file or folder to a previous state”

    https://support.microsoft.com/en-au/windows/experience/backup-recovery/backup-and-restore-with-file-history

  3. Open a document after a file corruption error — Microsoft Support (2026-09-20)

    “The Open and Repair command might be able to recover your file.”

    https://support.microsoft.com/en-us/word/open-a-document-after-a-file-corruption-error

  4. Repairing a corrupted workbook — Microsoft Support (2026-09-20)

    “click Extract Data”

    https://support.microsoft.com/en-us/excel/repairing-a-corrupted-workbook

  5. What to do about a critical warning for a storage device — Microsoft Support (2026-09-20)

    “Back up your data”

    https://support.microsoft.com/en-gb/windows/experience/storage-filemanagement/what-to-do-about-a-critical-warning-for-a-storage-device