In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

load and standardize 100 files that have inconsistent headers, schemas, sheet names

AdminYogesh
7 - Meteor

Hello Community members,

I am working on how to load and standardize 100 Source input files that have inconsistent headers, schemas, sheet names, and file formats, but contain the same underlying data, into one unified table in Alteryx.

I have added  #3 sample Dataset for Working purposes.


I would appreciate it if I could get any help from you guys!!

5 REPLIES 5
davidskaife
14 - Magnetar

Hi @AdminYogesh 

 

Here is a way of doing it, utilizing Batch Macros to read in the files - split out into one for xlsx files and one for csv - this runs on the assumption that all the csv will be the same, and all the xlsx will be the same, but you can adjust accordingly.

 

Have annotated the tools accordingly.

 

davidskaife_0-1765448036208.png

 

AdminYogesh
7 - Meteor

Hi @davidskaife, but the field name should be the same in the final output. If you can see that 3 different files have different field names, and that should be dynamic. Change: this will be a common field
(Employee ID
 First Name
Last Name
Department
Salary
Start Date )


davidskaife
14 - Magnetar

Hi @AdminYogesh 

 

In that case simply rename the columns to your desired headers in the final Select tool 

AdminYogesh
7 - Meteor

Yes, but the problem with the field's Structure will be inconsistent in every file.
> there will be Inconsistent headersschemas, sheet names, and file formats, but contain the same underlying data.

AdminYogesh_0-1765523142806.png

 

davidskaife
14 - Magnetar

Hi @AdminYogesh 

 

On the files you provided initially the columns were not out of order...

 

davidskaife_0-1765539082902.png

 

Anyway, I have updated both Macros to handle out of order columns, by updating the column names based on some matching criteria within an IF Statement (i.e if header contains 'First' then its renamed First_Name, if it contains 'Dep' then its renamed Department etc etc). The Union is now auto configured by name (as they should all be the same) and columns are re-aligned to the correct order.

 

Note: This is based on the files you have provided. If there are still other issues then please provide additional files

 

Labels
Top Solution Authors