sodcalculator

10 Tech How-To

Fix Windows Error 0x8007042 Incomplete

Guide 10-20577 · Updated · Step by step

Windows error 0x8007042 usually appears when a file transfer, copy, or backup operation stops with a message like “The data is invalid” or “The operation was incomplete.” This guide walks you through the most effective fixes, from checking disk errors to resetting Windows components, so you can get your files moving again.

What You’ll Need

  • Administrator access to your Windows PC
  • An external drive or USB stick (for backup and for creating a bootable repair drive if needed)
  • Patience – some steps take a while to complete

Step-by-Step

  1. Restart your computer. Sounds simple, but a temporary glitch in the storage driver or the file system is often the cause. Save your work, restart, and try the operation again.

  2. Check the destination drive for errors. Open File Explorer, right-click the drive you’re copying to, select Properties, go to the Tools tab, and click Check under Error checking. If Windows asks for permission, confirm. This scans the drive’s file system and fixes minor issues.

  3. Run a full disk check with CHKDSK. For a deeper scan, open Command Prompt as administrator (press Win, type cmd, right-click Command Prompt, select Run as administrator). Then type chkdsk X: /f /r (replace X with the drive letter of the problematic drive). If it’s your system drive, you’ll be prompted to schedule the check for next restart – type Y and restart. This can take hours on large drives, so be patient.

  4. Check the source drive for errors too. The error can also come from a failing source drive. Run CHKDSK on the source drive as well, using the same command but with the correct drive letter.

  5. Check for bad sectors with a third-party tool. Windows’ CHKDSK doesn’t always catch everything. Use a reputable tool like CrystalDiskInfo to check the SMART status of your drives. If the drive reports a failing status, back up your data immediately and replace the drive.

  6. Run the Windows System File Checker (SFC). Corrupted system files can cause this error. Open Command Prompt as administrator and run sfc /scannow. Let it complete – it may take 15-20 minutes. If it finds issues, it will fix them automatically.

  7. Run DISM to repair the system image. If SFC doesn’t help, run DISM /Online /Cleanup-Image /RestoreHealth in the same admin Command Prompt. This repairs the Windows image that SFC relies on. After it finishes, run SFC again.

  8. Disable any third-party antivirus or backup software temporarily. Some security programs interfere with file operations. Right-click the antivirus icon in the system tray and choose to disable it for a few minutes. Try the operation again. If it works, add an exception for the folder or drive you’re using. Remember to re-enable your antivirus.

  9. Try a different USB port or cable. If you’re copying to an external drive, a flaky connection can cause this error. Try a different port (preferably a USB 3.0 port) and a different cable if possible.

  10. Copy files in smaller batches. Sometimes the error occurs with a specific file that’s corrupted or too large. Instead of copying a whole folder, try copying files one by one or in small groups. This can help you identify the problematic file.

  11. Use Robocopy for stubborn transfers. Robocopy is a command-line tool that’s more resilient than File Explorer. Open Command Prompt as administrator and use this syntax: robocopy "source folder" "destination folder" /E /R:3 /W:10. The /R:3 means retry 3 times, /W:10 waits 10 seconds between retries. This often gets past temporary glitches.

  12. Reset Windows Update components. If the error occurs during a Windows Update, reset the update components. Open Command Prompt as administrator and run the following commands one by one:

    net stop wuauserv
    net stop cryptSvc
    net stop bits
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
    net start wuauserv
    net start cryptSvc
    net start bits

    Then restart your computer and try the update again.

  13. Perform a clean boot. This starts Windows with only the essential drivers and programs. Type msconfig in the Run dialog (Win+R), go to the Services tab, check Hide all Microsoft services, then click Disable all. Go to the Startup tab and click Open Task Manager, disable all startup items, and restart. If the error goes away, gradually re-enable services to find the culprit.

  14. Check the Event Viewer for more details. Press Win, type Event Viewer, and open it. Go to Windows Logs > System and look for errors that occurred at the same time as the 0x8007042 error. The details might point to a specific driver or device.

Common Mistakes

  • Skipping the restart. Many users jump straight to complex fixes when a simple restart solves the problem.
  • Ignoring the source drive. The error is often on the drive you’re copying from, not just the destination.
  • Running CHKDSK on a drive that’s in use. If you run CHKDSK on a drive that has open files, it may not be able to fix everything. Schedule it for a restart when the drive is not in use.
  • Not backing up data before running repairs. Always back up important data before running CHKDSK or any repair tool, just in case something goes wrong.
  • Disabling antivirus and forgetting to re-enable it. This leaves your system vulnerable. Set a reminder.

Tips

  • Keep your system updated. Windows updates often include fixes for storage and file system bugs that can cause this error.
  • Use a quality external drive. Cheap USB drives are more prone to connection issues. If you use one, consider upgrading.
  • Defragment your hard drive regularly. If you use a traditional HDD, fragmentation can cause errors. Search for “defragment” in the Start menu and run the tool.
  • Monitor drive health. Use tools like CrystalDiskInfo to keep an eye on SMART status, so you can replace a failing drive before it causes errors.
  • Use cloud storage as a backup. If the error persists, try uploading files to a cloud service like OneDrive or Google Drive as an alternative transfer method.

Troubleshooting

If you’ve tried all the steps and the error still appears, here’s what to do next:

  • Test the drive on another computer. If the error follows the drive, it’s likely the drive itself is failing. Replace it.
  • Check for overheating. If your computer is overheating, it can cause hardware errors. Clean the vents and ensure proper airflow.
  • Update your storage drivers. Go to Device Manager (right-click Start), expand “Disk drives,” right-click your drive, select Update driver, and choose Search automatically.
  • Use the Windows Memory Diagnostic. Faulty RAM can cause random errors. Type “Windows Memory Diagnostic” in the Start menu, run it, and restart to test.
  • Consider a repair installation. If nothing else works, you can do an in-place repair upgrade of Windows using the Media Creation Tool. This keeps your files and apps but replaces system files. Download the tool from Microsoft’s website, run it, and choose “Upgrade this PC now.”

Frequently Asked Questions

What exactly does error 0x8007042 mean?

It’s a generic Windows error that typically means “The data is invalid.” It often appears during file transfers, backups, or Windows updates, and points to a problem with the storage device, file system, or system files.

Can this error cause data loss?

The error itself doesn’t delete data, but if it’s caused by a failing drive, you could lose data. That’s why it’s crucial to back up your important files as soon as you see this error.

Will I need to reinstall Windows?

Usually not. Most of the time, the fixes above resolve the issue. Reinstalling Windows is a last resort if the system files are severely corrupted and the repair tools don’t work.

How long does CHKDSK take?

It depends on the drive size and speed. A 1TB drive can take 1-2 hours, while a 4TB drive might take 4-6 hours. It’s best to run it overnight.

Is it safe to use Robocopy?

Yes, Robocopy is a built-in Windows tool. It’s safe as long as you use the correct syntax. The /E flag copies all subdirectories, and /R and /W control retry behavior.

What if the error happens only with a specific file?

That file might be corrupted. Try copying it to a different location, or if it’s a video or image, try opening it with a media player to see if it’s damaged. If it’s a system file, run SFC again.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →