When attempting to migrate a file, one of the following messages is displayed:
- SharePoint returns an error after transferring the file. You should retry to transfer this document again.
- Could not retrieve file size information from SharePoint.
- Could not retrieve the file correctly because SharePoint returned an empty file. This may be caused by a corrupted file.
This error happens because the ShareGate migration tool received an error from SharePoint while transferring a file. The ShareGate migration tool retries the operation up to 5 times, but after that, it skips the document, and you receive this error.
These errors can occur when the migration tool transfers many larger files simultaneously, and SharePoint has trouble handling them.
Also, it is possible that a source file is corrupted, causing SharePoint to be unable to process it properly and ShareGate's migration tool to read it.
If you you got this error while migrating many larger files, you can try to migrate these files individually or in small batches with Copy content only.
If you got this error on smaller files or if you still get the error after migrating the files individually, check if the source file is corrupted. To do so, try to download a local copy directly from your source SharePoint library and with SharePoint Designer.
If you cannot download your file in SharePoint and SharePoint Designer, it will indicate that the file is corrupted, and ShareGate's migration tool will not be able to handle it.