Kunal Sinha
Kunal Sinha

Reputation: 77

decompress a .Z file in Azure Data Factory

How to decompress a .Z file in Azure Data Factory while pulling the file from source (SFTP) to ADLS. I've tried all the availabe options in Dataset but it's not working. I'm able to decompress a zip file but not able to do for .Z file.

Error - message":

"Failure happened on 'Sink' side. ErrorCode=UserErrorUnzipInvalidFile,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The file 'nz.drstores.cdp.csv.Z' is not a valid Zip file with Deflate compression method.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.IO.InvalidDataException,Message=End of Central Directory record could not be found.,Source=Microsoft.DataTransfer.ClientLibrary,

Upvotes: 1

Views: 1326

Answers (1)

Jay Gong
Jay Gong

Reputation: 23767

ADF deflate compression only supports below format of compress files which is stated in the official document clearly:

enter image description here

So no built-in feature in ADF,you may need to convert .Z file into supported format by yourself.Or you could submit feedback here to ask improvement of ADF.

Upvotes: 1

Related Questions