Split in batches only output two times the first item

Hello,

I can’t make the split in batches works!! It returns two times the first value instead of 6 items.

I suspect the input is not correct and miss a correct json format, with the “json” keyword like :

  {
    json: {
      url: 'https://medium.com/feed/n8n-io',
    }
  },
  {
    json: {
      url: 'https://dev.to/feed/n8n',
    }
  }
];

This is my function’s output while I’ve explicitly wrote the “json” word:

delta_days.push( {json: {"jour_fr":jour_fr , "delta":i } } );


[
{
"jour_fr":
"Mardi",
"delta":
2
},
{
"jour_fr":
"Mercredi",
"delta":
3
},
{
"jour_fr":
"Jeudi",
"delta":
4
},
{
"jour_fr":
"Vendredi",
"delta":
5
},
{
"jour_fr":
"Samedi",
"delta":
6
},
{
"jour_fr":
"Dimanche",
"delta":
7
}
]

I also saw that the json word is automatically added here Data structure - n8n Documentation since 0.166.0.

Can you confime the data structure is the problem to correctly run the split in batches and let me know how to fix it ?

Thank you!

Hey @Clapp_Prod,

I have just given the example workflow a go and it appears to work ok for me, To simplify the workflow I have dropped the Airtable node and popped in a No Op node. This shows Run 1 as being Mercredi, Run 2 as Jeudi, 3 as Vendredi and so on.

When you are running it what are you seeing?