Skip to content
Learn › Clean and shape data › Duplicates and checks: open the docs menu

What happens when a Data Check fails in a pipeline

Each Data Check has an If check fails setting: Pause the pipeline or Flag and continue. With several checks, Any or All decides what counts as a failure. Failed checks show in the pipeline and in Monitor, and can email people you choose.

Combine several checks with Any or All

Data Check with two checks, a Null percentage and a Unique values check, and the Any or All selector for If check fails

With two or more checks, the failure sentence reads If [Any | All] check fails. The toggle sets how results combine:

SettingThe Data Check fails when
Any (default)Any one check fails. Every check must pass.
AllEvery check fails. One passing check keeps the pipeline going.

All is more lenient than it sounds: it means all checks must fail to count as a failure. Use Any if one failed check should stop or flag the pipeline. Use All only when the checks are alternatives and passing one is enough.

Decide what happens when a check fails

If check fails choice with Pause the pipeline selected beside Flag and continue, a Notify on failure checkbox and an info banner
SettingWhat happens
Pause the pipelineThe pipeline stops. Later tasks wait until the data is fixed or approved, or you change the threshold, and the pipeline runs again. Use it for financial reports, regulated outputs, or anywhere bad data must not reach the final output.
Flag and continueThe failure is flagged and the pipeline runs to the end. Use it for operational data that analysts can still use, or to track data quality without blocking.

If Notify on failure is on, the email goes out whichever setting you choose.

Email people when a check fails

Tick Notify on failure and choose at least one recipient from the project's members. The email includes:

  • the View name, the project name and a link to the View;
  • where the Data Check sits in the pipeline, for example task 3 of 8;
  • the status and details of each check, including the measured value;
  • whether the pipeline was paused.

Read Data Check results and statuses

After a run, each Data Check shows one of four statuses:

StatusMeaning
PassedThe checks met the Any or All rule
FailedThe checks did not meet the Any or All rule
Not runThe Data Check has not run yet
BypassedIt was skipped in a partial rerun because it sits before the task you reran from

Open the status to see the Data Check results: each check with its column, condition, result and status. If a check uses a column that is no longer there, the dialog asks you to edit the Data Check to fix it.

Data Check Failed dialog with the failed check, run details and an Edit Data Check button

Find failed Data Checks in Monitor

A failed Data Check appears in Monitor, on the Needs Attention tab, in the Governance section. It reads Data check failed with a summary such as 1 of 2 checks failed. Click Review to open the View.

Monitor Needs Attention tab with an Errors section listing an error running a pipeline and a Governance section listing Data check failed with the summary 1 of 1 checks failed

The item clears once you fix the data and the pipeline runs successfully.

Troubleshooting a Data Check

SymptomCauseFix
The pipeline stopped and later tasks didn't runA Data Check set to Pause the pipeline failedOpen the status, fix the data or change the threshold, then run the pipeline again
A check fails even though only one rule brokeAny is selected, so one failed check fails the whole Data CheckExpected. Switch to All only if the checks are alternatives.
A check never fails although rules breakAll is selected, so every check must failSwitch to Any
The results dialog asks you to edit the Data CheckA check uses a column that no longer existsEdit the Data Check and pick an existing column
The Data Check shows BypassedYou reran from a task after itRun the full pipeline to test it again
Was this page helpful?

Something wrong? support@mammoth.io