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.

Dash (-) causing error - How to fix it using batch macro?

udles5666
8 - Asteroid

Hello Community 

I have an excel dataset with 50 tabs having 48 columns in each tab. The structure of the column doesn't change but, few values of a field have a - (dash) which i think is causing an issue for Dynamic input tool.  Can you please help me resolve this? I tried to build a macro but got stuck and couldn't figure out a way forward. Shall i be using a macro though for it? 

Appreciate help in advance. Workflow with dummy data attached. Thanks heaps :)

 
 
3 REPLIES 3
Gaurav_Dhama_
12 - Quasar

Yes, you will have to use macro for this scenario.

Why? Because in one sheet you have just normal letters, while in another sheet you have special characters like -. What happens?

Normal characters will result is data type v_string, while data with special character will result in v_wstring. These two have different ways they handle string. So, you get schema error.

JosephSerpis
17 - Castor
17 - Castor

Hi @udles5666 have a look at the solution from this post it uses two batch macros the first get a list of the sheets so it's dynamic then a formula tool builds the filepath including the sheets and then retrieves all the data from those sheets.

dreldrel
8 - Asteroid

Just an idea - maybe you could use an input tool in the batch macro and then just give the file path of those 50 tabs, which can be generated by a formula tool in Alteryx. If this helps, feel free to like the comment and select as a solution

 

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Batch-Macros-for-Multiple-exce...

Labels
Top Solution Authors