Referential Integrity Validation in ETL Workflows

Practical data validation articles for ETL workflows, source files, and automated data quality checks.

Advanced ETL Processor
4.9 ★★★★★ Based on 16 reviews on Capterra See all reviews on Capterra →

Referential integrity validation checks that related records still belong together. Advanced ETL Processor Enterprise validates parent-child relationships inside a visual ETL workflow, rejects or routes orphan records, logs the missing relationship, and keeps the original source data unchanged. Orders need customers. Invoice lines need invoice headers. Data without relationships is just a crowd of rows milling about near the database entrance.

Referential integrity validation in Advanced ETL Processor

Validate relationships before loading

Database foreign keys catch some problems, but by then the load may already be halfway through. ETL validation catches relationship errors earlier, routes bad records, and keeps the rest of the workflow under control.

Advanced ETL Processor validates parent-child relationships before writing to the target. That is especially useful when loading files in batches or combining data from several sources.

Common referential checks

  • Each order must have an existing customer.
  • Each invoice line must match an invoice header.
  • Each transaction must map to a valid account.
  • Each product movement must reference a known product.

When database constraints are enough

If the load is small and the database already rejects bad relationships clearly, database constraints are often enough. For scheduled, unattended, or multi-file workflows, ETL-side validation gives better diagnostics and fewer half-finished runs.

Useful references

Related pages: lookup validation, data validation types, and PostgreSQL's documentation on constraints.

Video

Next steps

If this validation rule belongs in a repeatable ETL process, configure it in the Validator object, test it on a sample file, then decide whether failed rows should be rejected, logged, or routed for review.

Keep the original data unchanged. Raw files are still the witness statement.