09-03-2020 06:41 AM
I have a pipleine which uses routers successfully, but notice that there are a few snaps which execute downstream from a router which does not run. Even if I disconnect the snaps, I see a GATE snap execute, and gives an error (unless I filter for !=[ ] after the gate snap). Atached is a picture of my snap: the green flow follows the routing, the blue line flow does not execute, but the highlighted Gate snap executes, with the following json, containing empty arrays for each of the gate inputs:
[
{
“Person”:[
]
“Section”:[
]}]
Solved! Go to Solution.
10-01-2020 08:32 AM
09-03-2020 07:13 AM
Hi @acesario,
The Gate Snap is designed to always have a single output document produced regardless of the number of input documents received.
09-03-2020 07:45 AM
Interesting. So you have to filter it to prevent an error? Works, just unexpected.
THANKS for the quick answer!
09-03-2020 09:37 AM
What is the error you are seeing?
There are use cases in which the snap was designed for where some snaps may not produce an output document for certain cases. However, when the snap is complete the execution can continue to flow to the rest of the pipeline using the Gate snap directly after a snap that completed, but may produce no output document. This is to ensure an output document is produced to drive the rest of the pipeline execution no matter what once the upstream snaps have completed.
09-03-2020 10:14 AM
Just an error in a downstream snap that the mapped variables are missing - as expected. The filter removed these errors, so i’m okay with this workaround.
Thank you