Alteryx Designer Desktop Discussions

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

Using Directory/Dynamic Input to Read in Multiple txt files as csvs/xlxs Files

LindonB
8 - Asteroid

Hi There,

 

I'm familiar with reading in txt files as CSVs, and I'm familiar with using the Directory and Dynamic Input tool to read in multiple CSVs from a folder, but I'm running into challenges attempting to reading in multiple .txt files at once. The data files all have the same fields, are the only files in each folder, and all follow the same naming conversion. They come from the Humanity Mortality Database. I'm attaching a couple of the documents, so that you can see the data format. 

 

Thank you, in advance, for the help!

3 REPLIES 3
echuong1
Alteryx Alumni (Retired)

You can also use a wildcard in the file name to dynamically read in multiple at once. Update the input tool to point to the folder path on your computer where these are held.

 

After importing everything, I noticed there were extra header lines at the top so I used regex to remove them. I also removed the period placeholders.

 

echuong1_0-1606328288866.png

 

LindonB
8 - Asteroid

This is very helpful. Would you mind letting me know how you're configuring the "File/Field Layout"? I have to reconfigure once I redirect to my folder. Thank you!

echuong1
Alteryx Alumni (Retired)

Read the file in as a fixed width. From there, just pick a general location of each field.

 

echuong1_1-1606758713441.png

 

 

echuong1_0-1606758699360.png

 

If this resolves your issue please mark this thread as solved so others can find answers more easily. Thanks!

 

Labels