Why does the n8n-node - Execution - Get
function behave differently depending upon how the Execution ID
value is supplied?
(The point of this is to, maybe, find out how to avoid this kind of thing in general. However, this might just be a bug in the API… in which case, maybe this all amounts to curiosity. Obviously, since there is workaround, it’s not anything that needs a solution.)
- Execution ID = expression referencing a value from a previous
set
node (string) - works fine / returns 1 matching item as expected - Execution ID = expression referencing a value from a previous
set
node (number) - works fine / returns 1 matching item as expected - Execution ID = expression referencing
$execution.id
directly - behaves more likeGet Many
- ALL EXECUTIONS RETURNED (but as 1 JSON item).- The expectation is that this should return only 1 item, matching the Execution ID value.
- Is the Execution ID value ignored for some reason in this case?
- Is the data type of
$execution.id
wrong for the Execution ID value? - Is the value being interpreted as a wildcard somehow?
- expression with bogus executionId - works as expected / returns “not found” error.
Information on your n8n setup
- n8n version: 1.62.5
- Database (default: SQLite): postgres 16
- n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Linux