Split in batches "now Cannot read property '0' of undefined"

Hey there,

I have setup my workflow with split in batches for http requests, now split in batches is not operating and it returns: Cannot read property ‘0’ of undefined

The node before it has json.

This was working fine before, now all of a sudden it stopped working.

Any thoughts on how to debug?

It appears split in batches is having trouble with setting it to “1” on batch size…

Can you maybe share a workflow that shows the problem you are having?

Thanks for the quick response!

I had two workflows running to pull into a node that was in a split in batches. I needed to remove the second workflow link into the node from the batch:

To this:

http node is pulling from the set node on the bottom workflow.

I got it resolved.

Hope this helps for anyone who encounters this.

Actually, that didn’t work. I realize the bottom workflow only pulls the node set info once, not on the other batches.

I figured out what was going on. I needed to move my set node before the batch and merge before the split in batches. That seems to have resolved it.

Glad to hear that you found a solution. Have fun!

1 Like