Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Macro to import multiple files

MB_Rocks
7 - Meteor

Dear Team,

 

Need help to import multiple excel files. I have ~60 excel files that need to import in alteryx is it possible to create a macro.

Name of the excel file :Analytics Master View Pages 20200501-20200930 (1) file name same except only the part which is highlighted in red is dynamic which is at the end i.e. 2, 3 , & so on till 60.

 

 

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @MB_Rocks 

 

I assuming that all the files are in same format.

 

There one easy way just configure Input tool like below

atcodedog05_0-1605078680376.png

So basically * is a wild character which can take any value there by reading all the files as your requirement.

Make sure all files are in same folder. And you need to replace (1) with *

 

atcodedog05_1-1605078766212.png


Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova
MB_Rocks
7 - Meteor

Thanks for your help I have done that as well its shows below error to me 

Warning: Input Data (1): The file "Category Link Mapping\New folder\Analytics Master View Pages 20200501-20200930 (12).xlsx|||`Dataset1$`" has a different schema than the 1st file in the set and will be skipped

only three file I'm able to import 

Tried ur workflow its same 

cgoodman3
14 - Magnetar
14 - Magnetar

@MB_Rocks 

the schema error occurs when using the wildcard method if there is a slight difference in field names or if in an Excel file there are columns which used to have data in but are deleted. In the link @atcodedog05  posted if you go to the method ‘3. Batch Macro with file paths’ then that will work. After importing check your columns are as expected, for example if you have a column called Date and one called date they will appear separately in the output.

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
Labels