File copy to USB portable MTP device fails during sleep or hibernation on Windows 8

Symptoms

Consider the following scenario:
  • You have a Windows 8 system with a portable MTP device or other device that uses the Media Transfer Protocol (MTP).
  • You start a file copy operation to read data from or write data to the device, such as Synchronizing files using Windows Media Player or using the File Explorer to drag and drop files on to the device.
  • The system goes to sleep or hibernation during the operation.

In this scenario, when you resume the system, some of the files were not copied. You may also see an error indicating that some of the files failed to be copied.

Cause

This might occur due to any of the following reasons:

1. The MTP device closed the MTP session on losing bus power when the system entered sleep or hibernation. When this is detected, the MTP driver cancels the current file transfer.

2. The USB controller failed a write request when the system entered sleep or hibernation. On resume, the MTP driver saw the failed request and canceled the current file transfer.

Resolution

Configure the system to not enter sleep or hibernation prior to starting the file copy operation.

Or

Restart the file copy operation for the files that failed to copy.

More Information

If you are copying many files, you may see the application pick up where it left off copying files, and only fail the files that were in the middle of being copied when the system entered sleep or hibernation. This is a function of the application handling the "Cancel Request" of the file transfer and continuing on after the system has resumed from sleep or hibernation.
Properties

Article ID: 2872825 - Last Review: Sep 29, 2014 - Revision: 1

Feedback