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.

Extracting files from zip files (or tar and tar.gz)

bobpeers
9 - Comet

Extracting files from zipped archives is supported in Alteryx but it's not particularly flexible. This SDK tool allows you to extract all the files from zip files, tar archives and tar.gz archives (Linux support, woohoo) into a given folder and optionally overwrite.

 

An example of using the tool is shown here.

 

Zip_example_workflow

 

Grab the yxi installer from my Github site: https://github.com/bobpeers/Alteryx_SDK_Zip

5 REPLIES 5
PaulNo
10 - Fireball

Hi @bobpeers,

 

Thanks for sharing your tool!

 

In case you would like some feedback for a future version, I believe that following features could be useful:

 

- Give the option to create the output folder if it doesn't exist

- Pass output folder as a field, like the source file

- Add a message to mention that file format is not supported 

- Add YXI and YXZP as supported formats (zip) 😉

 

Thanks again,

 

PaulN

 

bobpeers
9 - Comet

Thanks for the suggestions @PaulNo !

 

The full path of extracted files is output so the output folder is also there if you parse the field.

 

Also curious as to why you want to unzip yxi files since these are Alteryx specific and are not data files by default (it would be easy though since they are just zip files with a different name)

 

I'll definitely consider adding these 🙂

PaulNo
10 - Fireball

Hey @bobpeers,

 

Being able to build a workflow to analyse YXI files automatically (along with the structure of the YXI itself) could be useful sometimes!

 

Thanks for considering my suggestions!

 

PaulN

GIS_User01
7 - Meteor

Hello,

 

Does this work on csv files as well?  I am having trouble getting anything to happen with this tool.

 

Thanks in advance!

bertal34
9 - Comet

@bobpeers 

 

The ZIP SDK worked brilliantly for me, thank you for posting!

Labels
Top Solution Authors