Hello,
I have the following problem, and since I'm new to Alteryx I was hoping to get some advice.
- In a directory, we have some comma separated files (extensions .dat and .csv).
- Files have different layouts, so not all files have same number of columns / column names.
- Some files are Unix type files (record delimiter = CR), some files are DOS type (record delimiter = CR / LF).
We also have an Excel file that contains some basic metadata on the files:
| Filename | Header |
| File_A.dat | col1,col2,col3 |
| File_B.csv | colA,colB,colC,colD |
The idea is to follow these steps:
- Use Input to read filename + expected header from Excel
- Feed filename to Dynamic Input and read only 1 row (containing the header data)
- Compare the actual header record with the expected header
However, the Dynamic input requires an Input Data Source Template. How do i configure this to cope with both Unix and DOS type files?
Basically, from each file, we only want the first record. Record length is variable.
Any guidance, thoughts, or examples would be greatly appreciated.
Hans