Write modes: append, overwrite and upsert
Which write mode to choose for Google Sheets and Airtable, why append duplicates rows on a schedule, and how to pick upsert merge fields.
The write mode decides what happens to the rows already in the destination when a job runs. It is the setting most likely to cause duplicates, so choose it on purpose.
The modes at a glance
| Mode | Google Sheets | Airtable | What a run does |
|---|---|---|---|
| Append | ✓ | ✓ | Adds every row again, below the existing data or as new records. |
| Overwrite | ✓ | Clears the tab first, then writes the fresh rows. | |
| Upsert | ✓ | Updates records that match on the merge fields and creates the rest. |
Append
Append adds the job’s rows every time it runs. Use it only when each run really brings new rows, for example a source that returns only “yesterday’s orders”.
On a schedule, append with a source that returns the same rows each time duplicates your data on every run. The same happens when you re-run a job after a failure.
Overwrite (Google Sheets)
Overwrite clears the tab, then writes the full result. The tab always holds exactly what the latest run fetched. This is the right default for reports and dashboards in Sheets.
Give an overwrite job its own tab. Anything else on that tab, such as notes or formulas, is cleared on each run. Put your formulas and charts on another tab that references this one.
Upsert (Airtable)
Upsert matches incoming rows against existing records on one or more merge fields:
- A record that matches is updated.
- A row with no match creates a new record.
Re-running the job, on a schedule or after a failure, updates records instead of duplicating them.
Choosing merge fields
- Pick the field or fields that uniquely identify a row, such as an email, an order ID, or a date plus a campaign name.
- You can use at most 3 merge fields. That is Airtable’s limit.
- Every row must have a value in each merge field.
For a worked example, see Keep a daily history.