/
Fail on condition directive
Fail on condition directive
The FAIL directive will fail processing of data pipeline when condition is evaluated to true
.
Syntax
fail exp:{<condition>}
The <condition>
is a JEXL expression specifying the condition that governs if the record should be sent to the error collector.
Usage Notes
The most common use of the FAIL directive is to fail further processing of the pipeline when the condition is met.
Example
Assume a record that has these three fields:
Error Name
Error Count
These directives will implement these rules; any records that match any of these conditions will terminate further processing of the pipeline.
fail ErrorCount > 1
, multiple selections available,
Related content
Send to Error directive
Send to Error directive
More like this
Send to Error and continue processing directive
Send to Error and continue processing directive
More like this
Conditional
Conditional
More like this
Change Case directive
Change Case directive
Read with this
Conditions and Actions
Conditions and Actions
More like this
Filter Rows On directive
Filter Rows On directive
Read with this
Created in 2020 by Google Inc.