question

KarthikNaidu-6771 avatar image
0 Votes"
KarthikNaidu-6771 asked ShaikMaheer-MSFT commented

ADF: DMZ to ADLS Data Copy error

Facing this issue on Data Copy activity of ADF recently. It was working fine earlier. Can anyone help me with this?

Dataset has binary and GZip compression enabled.

Here is the issue.

Failure happened on 'Source' side. ErrorCode=InvalidDataFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The source data has an invalid format. Cannot decompress the source data. Source file name: 'file_name.txt'.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=ICSharpCode.SharpZipLib.GZip.GZipException,Message=Error GZIP header, first magic byte doesn't match,Source=ICSharpCode.SharpZipLib,'

azure-data-factory
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @KarthikNaidu-6771 ,

Welcome to Microsoft Q&A Platform. Thank you for posting query here.

I tried Copy activity using Source dataset(Binary) with compression type as "gzip(.gz)" and Sink dataset(Binary) with compression type as "none" and got similar issue when I pointed to an .txt file in source.

From your error message also, it seems you are point to "file_name.txt" file using source dataset which has compression type as "gzip(.gz)", hence ending up with issue. ".txt" files will not have any compression types. You can select "none" as compression type in source dataset and run copy activity for same file and check results.

Please let us know if it works or any further queries. Thank you.

0 Votes 0 ·

Hi @KarthikNaidu-6771 ,

Following up to see if you get chance to look above comment and share updates? Thank you.

0 Votes 0 ·

Hi @KarthikNaidu-6771 ,

Just checking if you get chance to look above comment and share updates? Thank you.

0 Votes 0 ·

0 Answers