Add rows to a dataset or replace its data
The Add data dialog loads new data into a dataset you already have: it adds rows on top of the existing data, or replaces it, from a file upload or from another dataset in the project. Open the dataset's panel in the Data Library and click Add data ("Append a batch, or swap the file for a newer one"). You need Edit-level access to the dataset.
To put the rows of two or more datasets together from the list (tick them, then Combine), see Combine datasets. Its Batches in one dataset option finishes in this dialog.
Open the Add data dialog
- In the Data Library, click a dataset row to open the dataset panel.
- Click Add data. You can also choose Add data from the row's ⋯ menu, or from the Batches section under Settings & history.
Add data is offered for datasets you upload files into. Datasets fed by a connection offer Retrieve instead, and datasets that follow a file link offer Get the latest.
The dialog is titled Add data, with the dataset name beneath, an Input file row and an Update method row.

| Your situation | Input file | Go to |
|---|---|---|
| You have a new file (CSV, Excel and so on) to load | Upload file | Add a file to a dataset |
| You want data from another dataset in your project | Select existing | Add another dataset's rows |
Choose add or replace: the update method
| Method | What it does | Use it for |
|---|---|---|
| Add to existing data (Combine) | Appends the new data as another batch. Previous data is kept and the dataset grows. | Incremental loads (daily sales, event logs, transaction feeds); monthly or regional files building a full history; audit and compliance needs that require full lineage |
| Replace all data | Deletes all existing rows (and previous batches) and inserts the new data, so the dataset stays a consistent size | Full snapshots (weekly inventory exports, complete dimension tables); latest-only data such as price lists, staff directories and status reports; correcting a wrong upload; real-time dashboards that need only the latest data |
Combine: April_Sales_Data.csv (127 rows) + June_Sales_Data.csv (127 rows) = 254 rows in 2 batches
Replace: Yesterday_Inventory.csv (1,000 items) -> Today_Inventory.csv (1,050 items) = 1,050 rows, only today's data
Changing the Update method saves it to the dataset straight away, even if you then select Cancel: "This changes the update method of the whole dataset, not only this upload. It stays changed even if you cancel adding the file." The same setting applies to Upload file and Select existing, and you can also change it in the dataset's settings.

Use Replace with care: previous data can't be recovered once replaced, so keep a copy of important history first. If every previous batch was suspended, the new batch is created suspended. See Batches: see and fix what arrived.
Add a file to a dataset
- Drag a file onto the drop zone, or click Upload file to browse your computer.
- Choose the Update method: Add to existing data or Replace all data.
- Optionally set Column mapping (Default or Custom; see Set column mapping and type rules). This row is not shown for PDF files.
- With Replace all data and a file that is not a PDF, select Replace and use the new file's columns when the file has new or renamed columns. The dataset's columns then become the file's columns.
- Click Submit. The button stays disabled until a file is selected.
A callout in the dialog explains that uploading a PDF replays the dataset's saved recipe automatically, while a CSV or Excel file is appended directly by matching columns.
| Detail | Value |
|---|---|
| Maximum file size | 50 MB (Limits and quotas) |
| Accepted formats | The same as for file upload: CSV, TSV, PSV, TXT, XLS, XLSX, XLSM, XML, JSON, JSONL, NDJSON, ZIP, BZ2, GZ, TAR, 7Z, PDF, TIFF, TIF, JPEG, JPG, PNG, HEIC, HEIF, WEBP |
A new row appears in the Batches list. It reads Applying recipe while Mammoth structures the file, or Pending if the batch needs a column mapping, a sheet selection or a file password (see Fix a pending batch).
What happens after you submit
The dialog closes straight away and the operation runs in the background; you don't need to wait on it. Mammoth:
- Appends or replaces the rows in the destination dataset.
- With Replace all data, deletes the previous batch records.
- With Delete dataset after combining ticked (Select existing only), removes the source dataset.
- Updates the batch count in the dataset panel: one more batch with Add to existing data, or one new batch in place of the old ones with Replace all data.
- Reruns dependent Views and pipelines. A View whose incoming link has Auto-sync off is not rerun: the new batch stays pending, and Monitor shows "new batch received, auto-sync off" with Preview and Process buttons (see Views).
- Writes an Activity Log entry recording what happened, who triggered it and when.
Follow progress in the Batches section of the dataset panel (under Settings & history) or in the Activity log.
Troubleshooting adding and replacing data
| Symptom | Cause | Fix |
|---|---|---|
| Add data isn't offered | The dataset is fed by a connection or follows a link | Use Retrieve or Get the latest instead |
| "These columns do not all match the dataset's, by name or by type." | Column names or types differ | Click Review Column Mapping, or set aliases with Create new column mapping |
| The new batch shows Pending | It needs a column mapping, a sheet selection or a file password | Select the row to resolve it (see Fix a pending batch) |
| The update method changed although you cancelled | Changing Update method saves straight away | Set it back in the dialog or in the dataset's settings |
| A View didn't update after the new data | Auto-sync is off on its incoming link | Click Process in Monitor, or turn Auto-sync on (see Views) |
| The source dataset disappeared | Delete dataset after combining was ticked, which deletes the source permanently | Untick it next time you want to keep the source |
Related
- Add another dataset's rows to a dataset: the Select existing flow.
- Set column mapping and type rules: aliases and type rules for new data.
- Combine incoming data: add or replace from new files on their own.
- Refresh a dataset: refresh a connected dataset with the same add or replace logic.
Something wrong? support@mammoth.io