Skip to content
Docs

Table Store Upsert

Table Store Upsert writes the incoming JSON as rows into a table store, updating rows that already exist instead of failing. A row matches an existing one when its values in the store’s unique columns are equal; matched rows are updated, the rest are inserted. You find it on the node picker’s Storage shelf.

The match columns are defined on the store, not on the node: mark the identifying columns as unique when you define the store’s columns under Tables. A store without any unique column gives the upsert nothing to match on, so define one before using this node.

The Table Store Upsert node's settings form, with the fields described below
The Table Store Upsert node's settings form, with the fields described below
FieldTypeDefaultDescription
Match on (matchOn)string ✦ (optional) — The unique column that decides whether a row already exists. Needed only when the table has more than one unique column.
Table (tableStoreId)string ✦ (required) — The table to insert the incoming rows into.
Empty a column sent as null (clearWithNull)boolean ✦ (optional) — Empty a column an item sends as null. Off, a null counts as not sent: a new row gets the column’s default, and an existing row keeps its value.
On error (onError)string ✦ (optional) — What to do when the table refuses the rows: fail the flow, or continue.

Fields marked ✦ accept expressions.

Try this node — run it once against your own workspace, with your credentials, without building a flow first.

Rows map to columns exactly as in Table Store Insert: keys must match column names, extra keys are ignored, a column that cannot be empty must be present, and a new row gets the column’s default for a column its item leaves out. Like Insert, the node writes what the node before it passes on, so straight after Start it gets nothing. When no rows reach it, it writes nothing, the run completes, and the run view notes 0 rows written: nothing reached this node. See When nothing reaches the node.

Three behaviours are specific to the upsert:

  • An updated row keeps the value of every column its item leaves out, whatever the other items in the batch carry.
  • A column the item sends as null is left as it is too, because a flow often sends null to mean “unknown”. Turn on Empty a column sent as null (clearWithNull) to empty the column instead, which is how a flow corrects a row. Either way, a column the item leaves out keeps its value, so leave a column out rather than sending null when it must not change.
  • When several incoming rows carry the same values in the unique columns, only the first is written; the duplicates are dropped before the write. The run says how many it dropped, as a note on this node in the run view: 2 rows repeated a key already in this batch (id); the first of each was kept. The output is unchanged by it.

The node emits the rows it wrote, after column mapping and de-duplication, as a JSON array, whether or not a duplicate was dropped. Each lists every column any item in the batch carried. A null there for a column the item did not set means “not sent”: an updated row still holds its old value, and a new row the column’s default.

With On error set to Continue with an error envelope, a refusal of the data (a reference to a row that does not exist, a value a column cannot hold, a required column left out) completes the node with {"error": true, "message": "…"} instead of failing the run, so a later step can log it. Nothing is written when that happens. A missing table always fails the run.

The TableStore / Upsert template in the template gallery re-imports a customer the TableStore / Insert template created, with a changed name:

{
"id": "cust-smoke-001",
"name": "Sanne de Wit (renamed)",
"email": "sanne@example.com",
"created_at": "2026-05-18T16:00:00Z"
}

Because id is a unique column on the store, the existing row is renamed in place rather than duplicated. The same pattern keeps a store in sync with an external source: use the source system’s identifier as the unique column and re-run the import as often as you like.