Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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
18 - Pollux
18 - Pollux

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