Fix a failing step in a Mammoth pipeline
A step fails when a task can't process the data it receives, usually because a column was renamed, removed or has the wrong type. The card turns red with Fix error and Delete buttons, and a This pipeline has errors banner appears at the top of the Pipeline panel. Start with the first failing task: later tasks often fail only because an earlier one did.
How a failing step looks
- The card border turns red, with a red warning icon and a message such as "Missing column: discount_pct" or "Type not compatible for: quantity_sold". A chevron expands the full error.
- Delete and Fix error appear at the bottom of the card. Tasks below it don't run until it is fixed.
- The banner reads This pipeline has errors with Fix the failing tasks to continue. After an add or edit, Mammoth says Added task, but pipeline has errors or Edited task, but pipeline has errors.
- The View tab at the bottom of the screen shows a red dot until every error is fixed and the pipeline runs. Use the dots to spot Views that need attention without opening each one.
Find the cause of a pipeline error
- Find the first failing task.
- Open it and note the column or setting it uses.
- Compare that with the columns available at that point in the pipeline.
The usual causes:
- A broken column reference. An earlier task removed or renamed the column.
- A type mismatch. An earlier task changed the type. If Convert Column Type turns
quantity_soldfrom Number to Text, a later Math Function doing arithmetic on it fails.
These cascade: every later task using the column fails at once, each with its own message and fix.
Fix the failing task
- Click Fix error on the card. The panel reopens with the problem marked in red, such as the missing or wrong-type column.
- Pick a replacement column or correct the expression, or remove the bad input and set the task up again.
- Click Apply. The task runs again.
Apply stays off until the problem is fixed. For example, a Math Function on a non-numeric column shows "Invalid arguments for SUM" until you choose a number column or change the expression. Cancel closes the panel and leaves the task in its error state.
Delete a failing task
- Click Delete on the card. A dialog says the task will be removed from the pipeline for good.
- Click Delete, or Cancel to keep it.
The tasks below then run again; those with no remaining problem run normally.
Respond to the Dependencies detected warning
When you apply a task that removes or changes a column other tasks use, a Dependencies detected dialog lists each affected task by number, name and View.
| Button | What it does | Use it when |
|---|---|---|
| Cancel | Returns you to the panel to change your settings | You want to keep the dependency |
| Proceed anyway | Applies the change and lets later tasks fail | You are restructuring on purpose and will fix or remove those tasks next |
What you can and can't do while the pipeline has errors
You can keep adding tasks from the + button and Transform menu. Failing cards have no insert button, so use the + below the last card or on a healthy card. New tasks run, in order with the queued ones, once the errors above them are fixed. Until every failing task is fixed or deleted, these are unavailable:
| Where | Unavailable |
|---|---|
| Pipeline panel header | The Draft mode toggle |
| Pending updates bar | Apply now |
| Task cards | Copy and the insert (+) button on failing cards, and Preview Data at this Task on every card |
| Task More options on an export or action step | Run now |
| View tab More options | Rename, Duplicate and Save as a template |
| Column menu | Rename Column, Hide Column and Revert to original column name |
| Multi-column menu | Hide, Hide only these and Show only these |
Fix a task that references a missing column
An earlier step renamed the column, a Remove Column task removed it, or a refreshed source renamed or dropped it.
- Note the column the failing task uses.
- Look back through the pipeline for where that column was last present.
- If it was renamed, update the task to the new name. If it was removed by mistake, delete or change the Remove Column task.
Type mismatches and Math Function messages: see Fix column type and formula errors. Joins that return zero or too many rows: see Fix a join that returns zero or too many rows.
Fix a pipeline that broke after a data refresh
A pipeline that worked and fails after a scheduled refresh usually means a source column was renamed or dropped.
- Find the failing tasks. Each uses a column that no longer exists under that name.
- Update the column references to the new names.
- If the change was not intended, ask the data source owner to restore the old columns.
If the refresh itself failed (for example a connection's sign-in expired), the automation shows Error in the Data Library and dashboards show old data. Open it in the Data Library Automations tab, read Last run result, re-authenticate the connection, then use Run now to confirm. Check the status after the next scheduled run, and re-authenticate connections before their credentials expire. See Refresh a dataset.
Still stuck? Contact support
Email support@mammoth.io with your workspace and project name, the pipeline name and failing step, a screenshot of the failing task, and what the pipeline was doing before the error started.
Related
- Fix a join that returns zero or too many rows: key mismatches and row explosions.
- Fix column type and formula errors: wrong types and Math Function messages.
- Find the step behind wrong pipeline output: no error, wrong numbers.
- Activity log and Monitor: where pipeline and automation problems surface.
Something wrong? support@mammoth.io