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 Designer Desktop Discussions

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

Filter tool returning to False i.e 'F' even when condition is True i.e 'T'.

swarajjoshi
7 - Meteor

Hey I have given a condition in Filter tool i.e Count = 0 after the directory tool checks if a file is present at a location.Then after the directory tool I have attached the Count Record tool which return 0 when there is no file present and 1 if a file is present.

But even after the file is not present and the condition is true, my filter tools runs the false part.

I have attached the workflow below: -

Capture.PNG

3 REPLIES 3
joshuaburkhow
ACE Emeritus
ACE Emeritus

@swarajjoshi 

 

The filter doesn't stop processing it will just dictate how many records go to each process. If you want to stop processing one way you could do it is by putting each of the processes in a container and enabling/disabling the container at runtime. 

Joshua Burkhow - Alteryx Ace | Global Alteryx Architect @PwC | Blogger @ AlterTricks
messi007
15 - Aurora
15 - Aurora

Hello,

 

You can transform the two output to macro and then run it based in the condition.

 

1- Create the macro with the filter

 

messi007_0-1604497879888.png

2- call the macro

 

messi007_1-1604497940937.png

 

Hope that help!

 

Regards,

 

 

ChrisTX
15 - Aurora

If you want to stop processing with Count = 0, you could use a Test tool on the False anchor of the Filter.  If a test fails, the Test tool creates a descriptive error message.

 

And maybe use a Block Until Done to send your email first.

 

Or for your email.... you could change the workflow options to send an email on error, under menu path Workflow Configuration > Events.  And under Workflow Configuration > Runtime, check the box for Cancel Running Workflow on Error.

 

Chris

Labels