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
- Re-download the archive and compare the file size
- Check the archive's hash if the source provides one
- Extract with 7-Zip instead of Explorer
- Use tar -xf with the ignore flag for damaged entries
- Extract to a different drive if the target keeps failing
- 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: Verify the Archive Itself
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.
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.
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.
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.
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: Extract With Better Tools
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.
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.
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.
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.
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: Fix the Target Side
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.
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.
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.
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.
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
- 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-
- 7-Zip — free open-source archive manager. https://www.7-zip.org/
- Microsoft Learn — tar command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tar
- Microsoft Learn — certutil command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/certutil
- 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.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.