Pretty new to Alteryx here.
So, say I have a folder with 20+ files that vary from .csv to .xlsm to .xlsx, etc (all Excel readable). Is there a way to create a workflow where I can tell Alteryx to look in this entire folder and convert all files to a specific file type, such as .xlsx? Rather than trying to create 20+ individual inputs? That's really all I need the workflow to do at this point - look in this folder, convert all files to .xlsx. I'm having trouble with the "look in this folder" and grab everything part ha.
Any advice is greatly appreciated!
Hi Sajast! So the "look in folder tool" will be the directory tool. Hope this jumpstarts things for you.
https://help.alteryx.com/20231/designer/directory-tool
Tim
Hi Sajast - I just noticed you put this post in the connect part of the discussions. I would repost any further questions in the "Designer Desktop" section as thats the product your questions will pertain to.
Hi @sajast
I did some research on how to handle scenarious like yours, and found this topic here in the community The Ultimate Input Data Flowchart which is based on the directory tool, batch macro and Input Data Tool
There are some limitations introduced by the Input Data Tool that we should be aware, they are:
Input Any File macro:
Now that we understand how to create a batch macro to Input CSV files with pipe separated fields, and based on the limitation listed above, we know that each file type requires its own Input batch macro, e.g. one for XLSX, other for XLS, another one for CSV files with commad separated fields, etc. We created another batch macro managing that scenario.
This macro receives the full file name to process (load), get the file type, base file name, and file name from the Control Parameter; with the file type is trigger the execution of the appropiated macro, e.g. Iinput CVS pipe, Input XLSX, Input XLS and so on.
We introduced a new limitation with this macro, if the file type for comma separated files is in lower case (csv) the file is pipe separated, and if it is all capital letter (CSV) the file contains comma separated fields.
This macro configuration is also similar to the individual Input XXX macros.
Load-Multi-File-Types-01 solution
Attachment:
Once you download and open that attached package, it creates the folder structure shown below: