Decompression error when file was copied via ADF
I am copying a gz zipped csv file from SFTP location to blob via ADF and using compression option of binary dataset while copying as shown below:
But receiving below error:
ErrorCode=InvalidDataFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The source data has an invalid format. Cannot decompress the source data. Source file name: '1.csv.gz'.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=ICSharpCode.SharpZipLib.SharpZipBaseException,Message=Unexpected EOF,Source=ICSharpCode.SharpZipLib,'
Also tried to unzip that file using winzip tool and facing below error:
But when i directly download the file from SFTP and unzip it, the file gets unzipped properly.
Any idea why only receiving this decompression error when file is getting copied via ADF?