Reputation: 77
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
Reputation: 23767
ADF deflate compression only supports below format of compress files which is stated in the official document clearly:
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