ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. 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.
解決済み

Batch macro to union multiple files not working

fiddycodes
アステロイド

Hello, 

 

I'm using a batch macro to read several csv files from a list of directories and union them together. 

 

filepaths
H:\Users\David\David.csv
H:\Users\Sam\new_file.csv

 

The schemas are different for some of the files, that's why I'm not using dynamic input. Dynamic inputs works for the files with the same schema though. Using the macro, my issue is that the macro is only reading the first input. Why is that? I'm not sure what I'm doing wrong. Here are some screenshots of my macro. 

 

My input table is a list of the different file paths as shown above. Please help

6件の返信6
Luke_C
17 - Castor
17 - Castor

Hi @fiddycodes 

 

Do you have a tool after the macro? If there's nothing after the macro only the first iteration will run. Try putting a browse tool after it. 

fiddycodes
アステロイド

Haha, what the heck? That worked! Why is that the case?

Luke_C
17 - Castor
17 - Castor

I can't find the exact documentation but that's expected behavior, probably to help performance.. i.e. only run everything if it's going to go somewhere. 

fiddycodes
アステロイド

Wow, I wish it said "showing partial results" or something

fiddycodes
アステロイド

Thank you!

VegasBeans
メテオロイド

YES!! Great call - thank you @Luke_C !

ラベル
トップのソリューション投稿者