Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

To run a worflow with or without input files

Polite123
8 - Asteroid

Hi Team,

 

I need a help to build a logic wherein the workflow should run even if it is without one of the input files.

 

For instance,if there are 2 input files to a particular workflow and if one of the input files is not placed(because there is no data in that file and hence removed) by the user,still the workflow as a whole should run.

Th file will be placed if data is present and not if it is other way round.

 

Thanks in advance!!!

 

6 REPLIES 6
DawnDuong
13 - Pulsar
13 - Pulsar

hi @Polite123 

Sound like you need to have a process with optional input anchor. You can check out the Macro where you can elect to have certain inputs as optional.

Dawn.

mceleavey
17 - Castor
17 - Castor

Hi @Polite123 ,

 

are the input files the same? Can you give an example of the usage?

 

M.



Bulien

Polite123
8 - Asteroid

Hi @mceleavey ,

 

They are two different files.

File A and File B.

File A will always be there but File B is optional.

File B is updated every month if there is data for that particular month else it is either kept blank or it is removed.

File B when kept blank(if no data) works properly but when removed it throws error saying that the 'file not found'.

 

Any help will be appreciated.

Thanks:)

 

 

mceleavey
17 - Castor
17 - Castor

Hi @Polite123 ,

 

check THIS feed as it goes through how to achieve this using a dummy file. This is only applicable if you are using an app to select the files.

If you are not using an app but are picking the files up automatically, then you will need to pick up the file and a dummy file. If the real file is not there, it will still pick up the dummy file, which you can then filter out. This allows the workflow to run without erroring.

 

M.



Bulien

Polite123
8 - Asteroid

Hi @mceleavey ,

 

Thanks for the quick solution.

I am not using app to select the file but if I want to filter out dummy file(considering automatic pick)..how can we achieve that?

 

 

mceleavey
17 - Castor
17 - Castor

@Polite123 ,

 

if you share your workflow I'll build it in for you.

I don't need any data.

 

M.



Bulien

Labels
Top Solution Authors