Hello,
I tried SplitInBatches with Merged data at the end following the guidelines below.
SplitInBatches works. However the last node function is never executed even if the if statement returns false.
Any idea ?
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
0,
360
]
},
{
"parameters": {
"batchSize": 1,
"options": {}
},
"name": "SplitInBatches",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 1,
"position": [
400,
480
]
},
{
"parameters": {
"functionCode": "return [\n {\n json: {\n url: 'https://medium.com/feed/n8n-io',\n }\n },\n {\n json: {\n url: 'https://dev.to/feed/n8n',\n }\n }\n];\n"
},
"name": "Function",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
210,
510
]
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "= {{$node[\"SplitInBatches\"].context[\"currentRunIndex\"]}}",
"value2": "= {{$node[\"SplitInBatches\"].context[\"maxRunIndex\"]}}"
}
],
"boolean": []
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
990,
200
]
},
{
"parameters": {
"functionCode": "return [\"test\"]"
},
"name": "Function1",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
1230,
390
]
},
{
"parameters": {
"url": "={{$node[\"SplitInBatches\"].json[\"url\"]}}"
},
"name": "RSS Feed Read",
"type": "n8n-nodes-base.rssFeedRead",
"typeVersion": 1,
"position": [
760,
400
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Function",
"type": "main",
"index": 0
}
]
]
},
"SplitInBatches": {
"main": [
[
{
"node": "RSS Feed Read",
"type": "main",
"index": 0
}
]
]
},
"Function": {
"main": [
[
{
"node": "SplitInBatches",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "SplitInBatches",
"type": "main",
"index": 0
}
],
[
{
"node": "Function1",
"type": "main",
"index": 0
}
]
]
},
"RSS Feed Read": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
}
}
}