Getting Execution Data

Hi there

I am truing to setup a last step in my workflow that would download the execution data and pass it to another workflow, I’ve setup my n8n API key correctly and im using a set node just before the n8n to extract the execution ID.

The problem im facing is that no matter what I do the n8n get execution never works.

I tried inputting the {{$execution.id}} formula right in the n8n node at first without the set node before and it didn’t work either.

See nodes below:

Anyone faced the same issue ?

Any help would be appreciated, im on the cloud version.

Error message: {
“errorMessage”: “The resource you are requesting could not be found”,
“errorDescription”: “Request failed with status code 404”,
“errorDetails”: {
“rawErrorMessage”: [
“Request failed with status code 404”
],
“httpCode”: “404”
},
“n8nDetails”: {
“nodeName”: “n8n Retrieve Execution”,
“nodeType”: “n8n-nodes-base.n8n”,
“nodeVersion”: 1,
“resource”: “execution”,
“operation”: “get”,
“itemIndex”: 0,
“runIndex”: 0,
“time”: “01/06/2025, 17:45:35”,
“n8nVersion”: “1.91.3 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: The resource you are requesting could not be found”,
" at ExecuteSingleContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:946:15)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at ExecuteSingleContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:1143:20)“,
" at RoutingNode.rawRoutingRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/routing-node.js:319:29)”,
" at RoutingNode.makeRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/routing-node.js:406:28)“,
" at async Promise.allSettled (index 0)”,
" at RoutingNode.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/routing-node.js:139:35)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:739:26)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:921:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1257:20"
]
}
}

Hi there, the error signifies that the execution you’re trying to find does not exist

i would suggest you to first trigger the Get All Executions, to confirm that the ID that you’re looking for is there

and/or, from the result of Get All Exeuction, just use 1 random id from there to test the Get One Execution and see if it works

Hi there

Thank you for taking interest in my topic!

Ive tried what you suggested and I get the same error

Error Message :“”{
“errorMessage”: “The resource you are requesting could not be found”,
“errorDescription”: “Request failed with status code 404”,
“errorDetails”: {
“rawErrorMessage”: [
“Request failed with status code 404”
],
“httpCode”: “404”
},
“n8nDetails”: {
“nodeName”: “n8n”,
“nodeType”: “n8n-nodes-base.n8n”,
“nodeVersion”: 1,
“resource”: “execution”,
“operation”: “getAll”,
“itemIndex”: 0,
“runIndex”: 0,
“time”: “03/06/2025, 08:40:25”,
“n8nVersion”: “1.91.3 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: The resource you are requesting could not be found”,
" at ExecuteSingleContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:946:15)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at ExecuteSingleContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:1143:20)“,
" at RoutingNode.rawRoutingRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/routing-node.js:319:29)”,
" at ExecuteSingleContext.makeRoutingRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/routing-node.js:332:20)“,
" at ExecuteSingleContext.cursorPagination (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/N8n/GenericFunctions.js:81:22)”,
" at RoutingNode.makeRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/routing-node.js:340:32)“,
" at async Promise.allSettled (index 0)”,
" at RoutingNode.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/routing-node.js:139:35)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:739:26)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:921:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1257:20"
]
}
}"

I really don’t know what I am missing here ?

This is working.


But getting the current execution_id is quite weird for me.

If you want to get the last execution from certain workflow.

here it is