Forum Discussion

kokimura's avatar
kokimura
New Contributor
6 years ago
Solved

How to stop snap execution

I have a pipeline which along the way checks for a presence of a particular value. If there is no value it should exit without errors but not execute the the rest of the pipelines. How do I achive th...
  • dimitri_hristov's avatar
    6 years ago

    Hi @kokimura,

    Perhaps you could use the object.hasPath(field) function to check for the existence of a field in a Filter Snap, in order to stop the invalid documents from propagating further down the pipeline and cause errors in the downstream snaps.

    BR,
    Dimitri