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 Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Issue with Dynamic Input

Krish_Penubarthi
7 - Meteor

Hi,

 

I have a folder from which I am trying to append multiple excel files using dynamic input tool. But, among that, metadata of  one of the file has a column as V_WString  and the same column in another file as V_String. Another field has similar issue with one field as String and other as double. So, the input tool skips the entire file. How can we handle this scenario before dynamic input.

5 REPLIES 5
DavidP
17 - Castor
17 - Castor

The dynamic input tool sees them as having a different schema from the rest which is why they are skipped. The way to overcome this is to create a batch macro to load the files one by one.

mborriero
11 - Bolide

agree with @DavidP , in your case you could use the Wildacard XLXS input from the CrewMacro

 

https://community.alteryx.com/t5/Engine-Works-Blog/Crew-Macro-Pack-2016-Q2-Release/ba-p/26482

Krish_Penubarthi
7 - Meteor

Thank you for the response. The solution works for static folder paths on a directory

 

I am using a directory as input for the macro created. But the partial path of my directory is dynamic, which changes on the date

 

Eg: c:\desktop\new\2019\feb\08-feb-2019

 

How can i use this dynamic folder names in directory tool.

 

Thanks

DavidP
17 - Castor
17 - Castor

Can you set your Directory Tool path up a level to say, c:\desktop\new\2019\, and then tick the box to include sub directories? You may then have to use a filter tool to remove some files that you don't want to load with the dynamic input tool

Krish_Penubarthi
7 - Meteor

Thank you. It worked as expected.