Skip to content
Learn › Clean and shape data › Fix a failing step: open the docs menu

Find the step behind wrong pipeline output

When every task runs but the result is wrong, step through the pipeline with Preview Data at this Task until the output stops matching what you expect. The cause is usually task order, an expression, or a column stored as the wrong type. For tasks that show a red error, see Fix a failing step.

Step through the pipeline to find the wrong step

  1. Step through the pipeline. Use Preview Data at this Task on each task and compare it with what you expect.
  2. Check the task order. Tasks run in sequence. A Conditional Filter after a Join filters the joined output, not each dataset before the join. Reorder if needed (Edit, reorder and copy pipeline tasks).
  3. Check your expressions. Work out the result by hand for a few rows and compare.

Fix Group & Pivot and Conditional Filter surprises

SymptomCauseFix
Sum or Average won't work on a columnIt holds numbers as textAdd Convert Column Type before Group & Pivot
Group & Pivot shows an empty groupThe grouping column has empty valuesFilter those rows out first if they don't matter, or handle the group later
Conditional Filter keeps rows you expected to removeThe conditions need all to be true, or only oneCheck the And/Or logic
A filter on numbers behaves oddlyThe numbers are stored as textConvert the column type first
status = "active" also drops empty rowsA condition excludes empty values tooAdd a condition for empty values if you want to keep them

Check an AI task that misses your intent

If an AI task (an Ask in plain words task, a Generative AI task, or a rule written in a function's AI bar) runs but misses your intent:

  1. Read its prompt and check the output on a few rows.
  2. Make the prompt more specific. Start simple and add detail step by step.
  3. Compare it with a manual task and keep whichever matches your logic.

Note prompts that work so you can reuse them.

Prevent pipeline errors

  • Filter early to reduce size and complexity (Speed up pipelines and connectors).
  • Check data types before calculations, and handle empty values on purpose. Don't assume there are none.
  • Use conditions to route problem rows into a separate flow.
  • Test each task on small, known data with edge cases (empty values, duplicates, extremes), and check it with Preview Data at this Task.
  • Test the whole pipeline on realistic volumes and source variations. Use Draft mode to queue tasks and review them before they take effect (How the pipeline works).
  • Add a Data Check between major stages as a quality gate. It can halt the pipeline and block later tasks, or warn and continue, and notify the people you choose. When a check fails, its result shows how many checks failed: fix the data and run again, or change the check threshold. See Remove duplicate rows and add data quality checks.
  • Compare row counts at key stages, and review the Data Quality report after changes. See Validation for patterns.
Was this page helpful?

Something wrong? support@mammoth.io