> AI agents: this is one page from Mammoth Analytics documentation. The index of all pages as Markdown is https://mammoth.io/docs/llms.txt. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get Markdown.

# Save a View's pipeline as a template and reuse it

> Save a Mammoth View's pipeline as a .mammoth template file, apply it to another View or dataset, and fix tasks that reference columns the new data lacks.
>
> Applies to: Where: Data editor › View tab › More options › Save as a template

A template captures a View's pipeline as a set of rules, without the data, so you can repeat the same pipeline on any View, with the same columns or different ones. Use **Save as a template** and **Apply template** in the View's three-dot menu in the data editor. Both are disabled in a View-only workspace.

## Save a View as a template

Open the View's three-dot menu and choose **Save as a template**. The template downloads to your computer as a `.mammoth` file holding the full pipeline, which you can share, store and reuse across datasets and projects.

It is disabled while the pipeline has an error, or while Draft mode has changes that are not applied yet. Save templates from proven Views, not works in progress: a template carries any errors in its pipeline to every View you apply it to.

## Apply a template to a View

1. Open the View's three-dot menu and choose **Apply template**.
2. Pick a template. The saved rules load into the current View.

**Apply template** is active only when the View's pipeline is empty. Templates aren't tied to a project or organisation: any `.mammoth` file you have can be applied.

If the target dataset's columns differ, the template still applies, but tasks that reference missing columns show errors, for example "This column is missing: Department." Each errored task offers **Fix** or **Delete**: work through them to fix mismatches or remove tasks that don't apply.

## When to use a template

- Apply the same logic to datasets from similar source systems.
- Set up a new dataset with the same structure as an existing one.
- Share a proven pipeline with other team members or projects as a file.

## Troubleshooting

| Symptom | Cause | Fix |
| --- | --- | --- |
| **Apply template** is greyed out | The View's pipeline has tasks. | Apply the template to a fresh View, or **Reset** this View first. |
| **Save as a template** is greyed out | The pipeline has an error, or Draft mode has changes not applied yet. | Fix the failing task, or apply your Draft mode changes. |
| "This column is missing: Department." | The target dataset lacks a column the template uses. | Click **Fix** to point the task at another column, or **Delete** the task. |

## Related

- [Create, rename, duplicate and delete Views](https://mammoth.io/docs/learn/organise/views/): the View Settings menu.
- [How the pipeline works](https://mammoth.io/docs/learn/clean-and-shape/how-the-pipeline-works/): the tasks a template holds, and Draft mode.
- [Fix a failing step](https://mammoth.io/docs/learn/clean-and-shape/fix-a-failing-step/): repair errored tasks.
- [Use a Parameter or Snippet](https://mammoth.io/docs/learn/organise/use-parameters/): keep values configurable across Views.

---
Source: https://mammoth.io/docs/learn/organise/view-templates.md · Updated: 2026-11-08
