Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Extracting .tsv file from a .gz file with the Dynamic Input tool

jgilligan
6 - Meteoroid

I am trying to get data out of a .tsv.gz file and into Alteryx, but I am having trouble using the Dynamic Input tool. I am able to download these files from the SFTP using the download tool. However, when I use the Dynamic Input tool to bring this downloaded file into Alteryx, there is no option to parse the file as a .tsv. I have tried to parse the file as a .csv and set delimiters to \t as well, but I receive an error. Is there any way to unzip the .gz file separately in Alteryx? If I can unzip the file first, I can bring in the .tsv file alone. I was able to unzip the file manually and the .tsv could be brought into Alteryx with no issues, so it seems to be the .tsv.gz format causing this problem.

 

 

4 REPLIES 4
FinnCharlton
13 - Pulsar

Hi @jgilligan, Alteryx can open files within a GZip, try this configuration of the Dynamic Input tool:

FinnCharlton_0-1678891745273.png

Hope this helps!

FinnCharlton
13 - Pulsar

Beware that using the Dynamic Input tool requires all of your files to have the same schema - if they don't, try using a batch macro.

jgilligan
6 - Meteoroid

When I try this, I get a "No file specified in zip archive:" error. Inside of the Dynamic Input tool, I choose the downloaded file as the Input, the location of that downloaded file as the "Read a list of Data Sources" field, and "Change Entire File Path" as the action. Am I setting this up incorrectly?

FinnCharlton
13 - Pulsar

You need to create a file path that includes both the full path of the .gz folder, and the file name of the file inside that you want to import. Do this with a formula tool, with a formula like this:

 

[FullPath] + "|||" + [NameOfFileWithinZip.tsv]

 

This will give you a File Path that looks like this:

 

FinnCharlton_0-1678899948357.png

 

Change the entire File Path in your dynamic input tool to this and see if it works.

 

Labels
Top Solution Authors