Information on your n8n setup
- n8n version: 1.53.2 (Enterprise licensing)
- Database: Postgres
- n8n EXECUTIONS_PROCESS setting: queue
- Running n8n via: Docker (with 2 workers)
- Operating system: Rocky 8.9 and Ubuntu 20.04Linux
I’m trying to use pagination to get rid of several loops and it doesn’t seem to like the SAP B1 API. Here are the details of the http request loop:
- First URL: https://saphana02.graco-roberts.lan:50000/b1s/v1/GR_ActiveDefects?$filter=U_PriKey eq ‘264’
Returns the following in the body:
[
{
"body":
{
...
"value": [
{
...
},
...
],
"odata.nextLink":"GR_ActiveDefects?$filter=U_PriKey%20eq%20%27264%27&$skip=20"
}
}
]
- The second request is: https://saphana02.graco-roberts.lan:50000/b1s/v1/GR_ActiveDefects?$filter=U_PriKey eq ‘264’&$skip=20
Using “Update Parameter in Each Request” fails with a bad URL response from the server. Using “Response Containers Next URL” to build the full URL fails with the error below, even though the UI recognizes that the referenced node was ran (and is still valid if I debug after failure.)
Disabling paging and using loops solves the problem but, some of these workflows we are building are pretty large and handling multiple loops in a single workflow gets harder to manage in these.
Any ideas of what else I can try? I can set the max page size larger for this particular call but, at some point the result sets will get to big to handle in one request.
## Share the output returned by the last node
{
"errorMessage": "Referenced node is unexecuted",
"errorDetails": {
"rawErrorMessage": [
"Referenced node is unexecuted"
]
},
"n8nDetails": {
"nodeName": "Get Defect DocEntries",
"nodeType": "n8n-nodes-base.httpRequest",
"nodeVersion": 4.1,
"itemIndex": 0,
"runIndex": 0,
"time": "8/9/2024, 9:23:52 PM",
"n8nVersion": "1.52.2 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"NodeApiError: Referenced node is unexecuted",
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1641:33)",
" at processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:728:19)",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:673:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1085:20"
]
}
}