Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Input multiple files at once

MuthanaMh
5 - Atom

I have multiple files (same type and same schema) in the same folder and trying to input all the files at once time, then do the same preparation such as select fields for all these files, and finally, export the output for each input file.

1 REPLY 1
danilang
19 - Altair
19 - Altair

Hi @MuthanaMh 

 

To input multiple files, use the wild card syntax in the path, i.e. "c:\temp\*.csv."   This will attempt to load all the files.  I say attempt because the schema(column name, Type and order) of the files have to be the same to input all the files successfully.   In the Input Data tool set Output File Name as Field to be "File Name Only" since your files are all in the same directory.  You be able to use the file names to group by as required. 

 

If the files have similar but not identical schema, use an input macro similar to the one in this post.  This post also has a very good explanation of how the input macro works.

 

I would suggest starting the process with just 2 files in the subdirectory to get the entire workflow configured and running properly.  Limiting the input to just 2 files will make debugging much easier than if you have 100s of files.

 

Dan

Labels
Top Solution Authors