cancel
Showing results for 
Search instead for 
Did you mean: 

Router not routing?

wpenfold
New Contributor III

I have a simple pipeline where I’m using Router to decide if an oracle procedure should be called. Even if I just set the router expression to false for the output0 view, the output0 snap (the oracle procedure), is still being executed. I’ve tried resetting my workspace. Is this a bug?

10 REPLIES 10

skatpally
Former Employee

I can’t replicate it. Can you please add more details on your router expression. Thanks.

wpenfold
New Contributor III

I’m using false for output0 and true for output1

wpenfold
New Contributor III

It appears to be the combination of the router and a gate snap. The gate snap, and the snaps after it, are being executed even if the router condition is not met.

del
Contributor III

@wpenfold, Per the gate snap documentation the gate snap will always produce an output document, even if input is empty. For these types of situations, it suggests following it with a filter snap with the expression !$.isEmpty().