Alteryx Designer Desktop Discussions

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

Ignore Dynamic Input if file is empty

AshishAgarwal
7 - Meteor

In my workflow one part is to Dynamic Input file (file path is based on formulae to deriv as it depends on dates).

However I have data in Dynamic Input file only on Month End and all other dates there is no file saved in folder.

There is also formulae (Multiple IF Formuale) based on file after getting data on Month End. 

 

So workflow throws error if file not saved.

 

And If I save Blank file keeping just header still formula code is throwing error.

 

I have read multiple post and tried if null or isempty but still not able to figure out how to proceed ahead.

 

Please help & advise me.

9 REPLIES 9
mst3k
11 - Bolide

can you use the directory tool to find the file and pass the value through your workflow? get the filepath from there, use a filter tool to make sure it's the right file name you want, if it's not, then no records will go to the dynamic input so it will not show an error

AshishAgarwal
7 - Meteor

I tried directoty toll but issue is there are many file in different date folder... Hence directory tool itself taking more time to search that file.

 

I kept directory run @ 11:15 IST and 20 mins has passed but still its running. Just 9% completed.

AshishAgarwal
7 - Meteor

Please help for above query... My workflow is failing because of above

atcodedog05
22 - Nova
22 - Nova

Hi @AshishAgarwal 

 

What error are you getting when you save Blank file keeping just headers. I am guessing you are facing a datatype issue ðŸ¤”.

atcodedog05
22 - Nova
22 - Nova

Hi @AshishAgarwal 

 

By default all the empty columns default to byte or numeric type. What you can do is use a select tool and change datatype right after input tool.

 

Initial:

atcodedog05_2-1631968087324.png

 

After adding select tool.

 

atcodedog05_1-1631968058915.png

 

This way most of the errors should be resolved.

 

If this doesnt resolve can you please snapshot of the error messages.

 

Hope this helps : )

 

 

AshishAgarwal
7 - Meteor

I am sorry but it didn't worked out.

AshishAgarwal_0-1631974068788.png

 

AshishAgarwal_1-1631974111205.png

 

 

AshishAgarwal_2-1631974143502.png

 

AshishAgarwal_3-1631974165153.png

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @AshishAgarwal 

 

Please set Type, Book, and other string & date columns to V_String and set length to 255. And needed numeric column to numeric datatype.

 

Hope this helps : )

AshishAgarwal
7 - Meteor

Hi @atcodedog05 Thank you so much... It worked...

 

Very small mistake and my whole workflow was stopped.

 

Thank you so much for enlightening on it.

 

Regards,

Ashish

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @AshishAgarwal 

Cheers and have a nice day!

Labels
Top Solution Authors