Every guide lists its sources, tips, and warnings. Read our editorial policy.

How to Fix Error 0x8007000D When Extracting a Zip File (Step by Step)

Error 0x8007000D means the archive contains data Windows cannot read — the download was truncated, the archive is damaged, or a file inside has a name Windows rejects. Verify the download, switch extractors, and pull the intact files out.

The short answer

0x8007000D is ERROR_INVALID_DATA. First re-download the archive and compare sizes — most cases are a truncated download. If the file is complete, extract with 7-Zip or `tar -xf` instead of Explorer, and use the option that keeps going past the damaged entry.

Download the full guide (PDF) Print checklist
Share
Set 52runoob as a preferred source on Google

You double-click the archive and Windows stops with `0x8007000D: The data is invalid.` Sometimes it extracts a few files first, then dies on the same one every time. The message is literal: something inside the archive does not parse, and the built-in extractor refuses to guess. The fix is to find out whether the archive is truncated, damaged, or just holding a name Windows cannot write.

Quick steps

  1. Re-download the archive and compare the file size
  2. Check the archive's hash if the source provides one
  3. Extract with 7-Zip instead of Explorer
  4. Use tar -xf with the ignore flag for damaged entries
  5. Extract to a different drive if the target keeps failing
  6. Run chkdsk on the target drive if errors follow it

Things you'll need

  • The archive that fails, plus its download link
  • 7-Zip, free and open source, for damaged archives
  • A second drive with free space to test extraction targets
  • The archive's SHA-256 hash if the vendor publishes one

Step-by-step

Method 1 of 3

Method 1 of 3: Verify the Archive Itself

PDF
Step 1: Re-download and Compare the Size Download image

Step 1: Re-download and Compare the Size

Most 0x8007000D errors are a download that stopped a few kilobytes early, and the missing bytes are exactly where the archive's index lives. Download again, then right-click both copies and compare Properties. If the new one is larger, the first was truncated — delete it and use the fresh copy.

Step 2: Check the Hash When One Is Published Download image

Step 2: Check the Hash When One Is Published

If the download page lists a SHA-256 or MD5 value, verify your copy: run `certutil -hashfile "C:\Downloads\archive.zip" SHA256` and compare the output against the published value. A mismatch proves the file on disk is damaged, no matter how complete it looks.

Step 3: Test the Archive With 7-Zip's Built-In Check Download image

Step 3: Test the Archive With 7-Zip's Built-In Check

Install 7-Zip, right-click the archive, and choose `7-Zip > Test archive`. The test reads every entry's checksum without writing anything. A clean test means the archive is fine and the problem is in the extractor or the target drive. A failed test names the damaged entry.

Step 4: Look for Password-Protected or Split Archives Download image

Step 4: Look for Password-Protected or Split Archives

Explorer cannot open encrypted zips or multi-part archives, and both surface as invalid data. If the vendor's page mentions a password, or you downloaded `archive.7z.001` instead of one file, that is the cause. Reassemble all parts into one folder and use 7-Zip, which opens both types natively.

Step 5: Confirm It Really Is a Zip File Download image

Step 5: Confirm It Really Is a Zip File

A `.zip` extension on a different format confuses Explorer completely. Right-click the file, choose Open with 7-Zip, and read what format 7-Zip reports. If it says 7z, RAR, or tar, rename the extension correctly — the contents were never zip data, and no zip tool was going to read them.

Method 2 of 3

Method 2 of 3: Extract With Better Tools

PDF
Step 6: Extract With 7-Zip Instead of Explorer Download image

Step 6: Extract With 7-Zip Instead of Explorer

Explorer's extractor stops at the first invalid entry; 7-Zip does not. Right-click the archive, choose `7-Zip > Extract to archive\`, and let it finish. Entries whose checksums fail are reported at the end while everything intact extracts normally — which is all most people need.

Step 7: Use tar With the Ignore Flag Download image

Step 7: Use tar With the Ignore Flag

Windows ships a real tar that tolerates damage: run `tar -xf "C:\Downloads\archive.zip" -C "D:\Extract" --ignore-zip-errors` in a terminal. The `--ignore-zip-errors` flag skips entries that fail their checksum instead of aborting the whole archive. Check the output folder afterwards and re-download only the files it skipped.

Step 8: Repair the Archive With WinRAR Download image

Step 8: Repair the Archive With WinRAR

WinRAR includes a repair function that rebuilds damaged archive indexes. Open the archive in WinRAR, click `Tools > Repair archive`, and choose a destination for the rebuilt copy. For zips damaged at the index level — the classic 0x8007000D pattern — the repaired copy extracts cleanly in any tool.

Step 9: Extract Individual Files You Actually Need Download image

Step 9: Extract Individual Files You Actually Need

When only a few files inside matter, open the archive in 7-Zip, select them, and drag them out. Single-file extraction skips the damaged entries entirely and is faster than repairing the whole archive when you need one document out of hundreds.

Step 10: Try a Different Extractor for Odd Formats Download image

Step 10: Try a Different Extractor for Odd Formats

Some archives use compression methods Explorer does not know — LZMA, zstd, PPMd. 7-Zip reads most of them; for anything exotic, the vendor's page usually names the tool that created the archive. Use the matching extractor rather than forcing a generic one to guess.

Method 3 of 3

Method 3 of 3: Fix the Target Side

PDF
Step 11: Extract to a Different Drive Download image

Step 11: Extract to a Different Drive

If the archive tests clean but extraction still fails with 0x8007000D, the problem is where you are writing. Extract to a different drive — the desktop, a second disk, a USB stick. If it completes there, the original target drive has the real problem, and everything below points at it.

Step 12: Check Free Space on the Target Download image

Step 12: Check Free Space on the Target

Archives unpack to several times their own size, and running out of space mid-extract surfaces as invalid data. Check the target drive's free space against the archive's uncompressed size — 7-Zip shows it in the archive's properties. Free space or pick a bigger target before extracting again.

Step 13: Shorten the Target Path Download image

Step 13: Shorten the Target Path

An archive holding deeply nested folders can overflow the 260-character path limit at the target, and the write failure shows up as invalid data. Extract to a short path like `D:\X` first, then move the extracted tree where you want it with robocopy, which handles long paths natively.

Step 14: Run chkdsk on the Failing Target Drive Download image

Step 14: Run chkdsk on the Failing Target Drive

A target drive that produces the same error with every archive is losing writes. Run `chkdsk D: /f` on it in an elevated terminal — add `/r` on an external drive for the sector scan. Let it complete before extracting again, and never interrupt chkdsk once it starts.

Step 15: Pause Antivirus During Extraction Download image

Step 15: Pause Antivirus During Extraction

Real-time scanners open every file the extractor writes, and on large archives the lock conflict reports as invalid data. Disable your antivirus's real-time protection for the extraction, extract, then turn it back on. If this is what fixes it, add your archive folder to the scanner's exclusion list.

Tips

  • 0x8007000D is almost always the download, not Windows. Compare sizes and hashes before suspecting your PC.
  • 7-Zip's Test archive command is the fastest verdict on whether the file itself is damaged.
  • Keep both extractors around: Explorer for convenience, 7-Zip for anything that has ever failed once.
  • A hash mismatch always wins over appearances — a complete-looking file can still be damaged.

Warnings

  • Do not keep re-downloading from the same failing link without checking — some servers serve truncated files repeatedly. Use a mirror or the vendor's direct link.
  • Never extract archives from unknown senders just to test them. 0x8007000D is sometimes the only warning you get.
  • Do not interrupt chkdsk once it starts scanning sectors.
  • Skipping damaged entries means those files are missing afterwards. Check the extraction log and re-download anything important it skipped.

Frequently asked questions

Why does it extract some files and then fail on one?

Because the archive's entries are intact until that one — either its bytes were damaged in the download or its checksum does not match. Extractors that keep going, like 7-Zip, pull out everything intact and list the entries they skipped.

Is 0x8007000D ever a Windows problem?

Rarely. When every archive fails with the same code, the problem is the target drive or a real-time scanner conflicting with the writes. Extract to a different drive with the scanner off to prove it before repairing anything.

Can I recover the damaged entry instead of skipping it?

Sometimes. WinRAR's repair function rebuilds damaged indexes, and a fresh download of just that file from the source is the cleanest fix. A file whose bytes are damaged on disk cannot be repaired from the archive alone.

Why does 7-Zip open it when Explorer cannot?

Explorer supports one zip format and stops at the first checksum failure. 7-Zip reads zip, 7z, RAR, tar and more, and skips past damaged entries instead of aborting. The archive was never invalid — it was just beyond what the built-in tool tolerates.

References

  1. Microsoft Learn — System Error Codes 0–499 (0x8007000D, ERROR_INVALID_DATA). https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
  2. 7-Zip — free open-source archive manager. https://www.7-zip.org/
  3. Microsoft Learn — tar command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tar
  4. Microsoft Learn — certutil command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/certutil
  5. Microsoft Learn — chkdsk command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk

Every guide is reviewed against its sources. See our editorial policy.

Get one fix like this every week

One short email with the most useful new guide and a printable checklist. No spam, unsubscribe anytime.

Reader comments

0 so far

Finished this guide? Tell other readers what worked, what didn't, and what you would change.

Stuck on a step? Tell us your device model and what happened — an editor reads every comment and usually replies within 48 hours.

Be kind and constructive. Comments are published instantly.