Start Free Trial

Alteryx Designer Desktop Discussions

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

Conditional Run

moperry
7 - Meteor

Hello All,

 

I would like to schedule a workflow to look at at flat file and only proceed with the remainder of the steps IF the row count is greater than 1 row in the file. For the life of me, I cannot think of what to use. I can use the count function but what then?


Thanks.

 

Moses

4 REPLIES 4
mceleavey
17 - Castor
17 - Castor

Hi @moperry ,

 

use the Message tool:

mceleavey_0-1618508602187.png

this allows you to build in a check that will stop the process if the count of records < 2, or whatever you want.

 

M.

 



Bulien

Morgan_Thomas
8 - Asteroid

Another approach could be something like the attached, which I have used before. 

Maskell_Rascal
13 - Pulsar

Hi @moperry 

 

Using the Count, Append, and Message Tools we can accomplish this. See attached workflow. 

 

Input:

Maskell_Rascal_0-1618510341527.png

 

Workflow w/ no output:

Maskell_Rascal_1-1618510374718.png

 

If we change the input to include more than one row of data, then this is our results. 

Maskell_Rascal_2-1618510424384.png

 

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Thanks!

Phil

moperry
7 - Meteor

Thanks Maskell. I think this will be a solution I can use in my workflow. Much appreciated.

 

Thanks.

Labels
Top Solution Authors