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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to sole "the file has a different schema than the first and will be skipped" error

camerynparsons
6 - Meteoroid

How can I import multiple files using a wildcard with different schema using a batch macro

3 REPLIES 3
alexnajm
19 - Altair
19 - Altair

There are many community articles/discussions to help, like: https://knowledge.alteryx.com/index/s/article/The-Ultimate-Input-Data-Flowchart-1583459854309

leefarrell
7 - Meteor

To import multiple files with different schemas using a batch macro in Alteryx:

Create a Batch Macro: Start by creating a new batch macro. This will allow you to process each file individually.

Use Input Tool with Wildcard: In the batch macro, use an Input Data tool and set it to read files using a wildcard (e.g., *.csv). This will pull in all files matching the wildcard pattern.

Dynamic Input Tool: If your files have different schemas, use a Dynamic Input tool inside the macro to handle varying structures. Configure it to adjust to different schemas as needed.

Configure the Batch Macro: Set up the macro to loop through each file and apply the necessary transformations or analyses. Make sure to include any necessary error handling for schema mismatches.

Run the Macro: Connect your macro to a workflow and run it. The macro will process each file in the specified directory according to the wildcard pattern.

Labels
Top Solution Authors