Apply fail condition to SQL rules - Precisely Data Integrity Suite

Data Integrity Suite

Product
Spatial_Analytics
Data_Integration
Data_Enrichment
Data_Governance
Precisely_Data_Integrity_Suite
geo_addressing_1
Data_Observability
Data_Quality
dis_core_foundation
Services
Spatial Analytics
Data Integration
Data Enrichment
Data Governance
Geo Addressing
Data Observability
Data Quality
Core Foundation
ft:title
Data Integrity Suite
ft:locale
en-US
PublicationType
pt_product_guide
copyrightfirst
2000
copyrightlast
2026

A fail condition in SQL rules refers to a scenario where the logical test or constraint defined within a rule determines that the rule has failed. Records evaluated against this rule are then marked as failed records. When you define fail conditions, if a Data Quality pipeline uses the SQL rule as a source, the pipeline processes only the records that meet the defined fail condition, along with the fields you selected in the SQL rule.

  • Choose Fail condition to process failed records.
  • Make sure to select the fields which you want available in the Data Quality pipeline; the pipeline can only process fields selected in this rule.

Fail condition for SQL queries

To configure a fail condition using a SQL query:

  1. Click Fail condition.
  2. Enter your SQL query within the Fail condition text box. You can write SQL queries using the available SQL functions, and correlate data across multiple tables directly.
  3. After the query is entered, the specified conditions are evaluated based on the input, and the rule is evaluated accordingly based on the defined fail conditions.
  4. After the rule evaluation completes successfully, the failed count displays the total number of records that met the defined fail condition.

After a rule is evaluated, you can use the records that the rule processed as a source in the Data Quality pipeline.