// guides · n8n error index

n8n Execution Data node not saving? 23 tests, every silent drop

Why the n8n Execution Data node saves nothing: keys with spaces or dashes, boolean or object values, more than 10 keys, several items, Fixed mode. 23 real runs on n8n 2.43.7.

Updated 2026-10-25 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. Know which mode you are in: editor runs throw, production runs stay silent

    We ran 23 executions of the Execution Data node (v1.1, plus v1 once) on n8n 2.43.7 with n8n execute, which is not a manual run, and read what was stored in the database. Every bad key or value was dropped with a green node and no error. Reading the n8n source (custom-data.js in n8n-core), the same mistakes throw only in a manual run from the editor: Custom data key can only contain letters, numbers, and underscores and Custom data values must be a string. In production (a trigger, a schedule, the CLI) they are just a debug log line. So a workflow can fail when you test it and pass silently in production, with nothing saved. We could not run manual mode from the CLI, so the editor errors come from the source, not from our runs.

  2. Use only letters, numbers and underscores in keys

    Keys order id (space) and order-id (dash) were never saved. order_id and orderId worked. Keys longer than 50 characters were cut to 50, and an empty key was accepted, so check spelling: a later filter on orderid will not find orderId.

  3. Turn every value into a string

    Numbers were stored as strings (42 became "42"). Booleans ({{ true }}), objects ({{ $json.obj }}) and arrays ({{ $json.tags }}) were not saved at all. Wrap them: {{ String($json.paid) }}, {{ $json.tags.join(',') }} or {{ JSON.stringify($json.obj) }}. Plain strings always saved in our runs; we did not run the JSON.stringify version itself. Values longer than 512 characters are cut to 512, so save an id, not a whole payload.

  4. Several items: only the last value survives

    The node runs once per item and the custom data belongs to the whole execution. With 3 items (A-1, A-2, A-3) and key orderId, only A-3 was stored. If you need all of them, put an Aggregate node before it and save {{ $json.orderId.join(',') }}, or save a count instead. The same key twice in one node also keeps only the last row.

  5. Stay under 10 keys per execution

    With 11 keys, k0 to k9 were saved and the 11th was dropped with no warning. Per the source this limit is silent even in manual runs. Merge related values into one key if you need more.

  6. Expression mode, not Fixed, and check for empty values

    In Fixed mode the text {{ $json.orderId }} was stored literally, braces included. Switch the Value field to Expression. A field that does not exist ({{ $json.nope }}) saved "" without an error, and so did an empty value, so an empty column in the Executions list usually means a wrong field path, not a broken node. See n8n expression errors and undefined values.

  7. The node needs at least one item

    When the node before it returned no items, the Execution Data node never ran and nothing was saved. Put it on a branch that always has an item, or turn on Always Output Data on the node before it. With Continue On Error on, a bad key still gave no error item, just no data.

  8. Code node: $execution.customData has the same rules

    In a Code node, $execution.customData.set('total', 42) stored "42", set('flag', true) was ignored, setAll({a:'1', b:{c:1}}) saved only a, and get('nope') returned undefined. A later node can read everything with $execution.customData.getAll(). More Code node traps: n8n Code node errors.

  9. Saved but you cannot filter on it? That is the plan, not a bug

    The node's own notice says filtering executions by custom data in the Executions list needs a Pro or Enterprise plan. On Community the data was still saved in every run, you just cannot search the list by it. You can still read it in an error workflow or a sub-workflow with $execution.customData.

All 23 test results

What we savedWhat n8n stored
One item, key orderId, value {{ $json.orderId }}Saved: {"orderId":"A-1"}, items passed through unchanged
3 items, same key orderIdOnly the last value saved: "A-3"
Number {{ $json.total }} (42)Saved as the string "42"
Boolean {{ true }}Not saved, node green
Object {{ $json.obj }}Not saved, node green
Array {{ $json.tags }}Not saved, node green
Key with a space (order id)Not saved, node green
Key with a dash (order-id)Not saved, node green
11 keys in one executionk0 to k9 saved, the 11th dropped, no warning
Key of 60 charactersCut to 50 characters
Value of 600 charactersCut to 512 characters
Empty valueSaved as ""
Missing field {{ $json.nope }}Saved as "", no error
Empty keyAccepted and saved
Fixed mode with {{ $json.orderId }}Saved the literal text {{ $json.orderId }}
Zero input itemsNode never runs, nothing saved
Continue On Error on, bad keyNo error item, just no data
Same key twice in one nodeLast row wins
Code node $execution.customData.set('total', 42)Saved as "42"
Code node set('flag', true)Ignored silently
Code node setAll({a:'1', b:{c:1}})Only a saved
Code node get('nope')undefined
Read in a later node with $execution.customData.getAll()Returns every saved key

Code node: save values safely

This turns any value into a string, keeps keys to letters, numbers and underscores, and stops at 10 keys, so nothing is dropped silently (written from the rules above; this exact snippet was not run):

const src = $input.first().json;
const out = {};
for (const [k, v] of Object.entries(src)) {
  if (Object.keys(out).length === 10) break;
  const key = k.replace(/[^A-Za-z0-9_]/g, '_').slice(0, 50);
  const val = typeof v === 'string' ? v : JSON.stringify(v);
  out[key] = (val ?? '').slice(0, 512);
}
$execution.customData.setAll(out);
return $input.all();

Checklist

Good to know

What we did not test

Manual runs from the editor (the error messages above are from the source), the Executions list filter on Pro or Enterprise, n8n Cloud, queue mode, and Postgres instead of SQLite.

FAQ

Why is my n8n Execution Data node not saving anything?

Usually a key with a space or dash, or a value that is a boolean, object or array. Outside the editor n8n drops them silently with a green node. Use letters, numbers and underscores, and wrap values in String() or JSON.stringify().

How many custom data keys can an n8n execution have?

10. In our test the 11th key was dropped with no warning. Keys are cut to 50 characters and values to 512.

Why does n8n save only the last item in Execution Data?

Custom data belongs to the whole execution, and the node runs once per item, so each item overwrites the same key. Aggregate the items first and save a joined value.

Can I filter n8n executions by custom data for free?

The data is saved on every plan, but filtering the Executions list by it needs Pro or Enterprise, according to the node notice.

How do I read custom data later in the same workflow?

Use $execution.customData.get('key') or $execution.customData.getAll() in an expression or a Code node.

Can I set n8n custom data from a Code node?

Yes, with $execution.customData.set('key', 'value') or setAll({...}). The same rules apply: string values only, valid keys, 10 keys max.

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.