In my workflow am using two SplitInBatches nodes, but the workflow is running only one time. Following the workflow script. Could some one look into this and help me to fix the flow
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
130,
270
],
"disabled": true
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 1
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
130,
460
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "=select b.id `issueId`, p.name `project`, summary\nfrom mantis_bug_table b\n inner join mantis_project_table p on p.id = b.project_id\nwhere p.name='{{$node[\"SplitInBatches\"].json[\"mantisProject\"]}}' limit 10;"
},
"name": "MySQL",
"type": "n8n-nodes-base.mySql",
"typeVersion": 1,
"position": [
740,
460
],
"credentials": {
"mySql": "MySQL-Mantis"
}
},
{
"parameters": {
"batchSize": 1,
"options": {}
},
"name": "SplitInBatches",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 1,
"position": [
540,
460
]
},
{
"parameters": {
"collection": "Project"
},
"name": "MongoDB",
"type": "n8n-nodes-base.mongoDb",
"typeVersion": 1,
"position": [
340,
460
],
"credentials": {
"mongoDb": "qms-mongo"
}
},
{
"parameters": {
"functionCode": "\nconsole.log(items[0].json['issueId'] + ' - ' + items[0].json['project'] + ' - ' + items[0].json['summary'])\nreturn items;"
},
"name": "Function",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
1150,
460
]
},
{
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{$node[\"SplitInBatches1\"].context[\"noItemsLeft\"]}}"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1360,
240
]
},
{
"parameters": {
"batchSize": 1,
"options": {}
},
"name": "SplitInBatches1",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 1,
"position": [
940,
460
]
},
{
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{$node[\"SplitInBatches\"].context[\"noItemsLeft\"]}}"
}
]
}
},
"name": "IF1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1470,
730
]
}
],
"connections": {
"Cron": {
"main": [
[
{
"node": "MongoDB",
"type": "main",
"index": 0
}
]
]
},
"MySQL": {
"main": [
[
{
"node": "SplitInBatches1",
"type": "main",
"index": 0
}
]
]
},
"SplitInBatches": {
"main": [
[
{
"node": "MySQL",
"type": "main",
"index": 0
}
]
]
},
"MongoDB": {
"main": [
[
{
"node": "SplitInBatches",
"type": "main",
"index": 0
}
]
]
},
"Function": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "SplitInBatches1",
"type": "main",
"index": 0
}
],
[
{
"node": "IF1",
"type": "main",
"index": 0
}
]
]
},
"SplitInBatches1": {
"main": [
[
{
"node": "Function",
"type": "main",
"index": 0
}
]
]
},
"IF1": {
"main": [
[
{
"node": "SplitInBatches",
"type": "main",
"index": 0
}
]
]
}
}
}