I remove an item in a node code with the splice function if one condition is met. It works well if Batchsize >1
When batchsize =1, the process stops when condition is met, even if additional items should be processed.
What is the error message (if any)?
No error, … behaviour is different, depending on the value of Batchsize
@hsteph , it is not a bug. The Loop stops working when no item returned (per design).
When the batch size is one and you remove that item in the loop, you essentially stop it as no item is returned. If “removebill” node set to always return a value (here it will be an empty object returned), the Loop will continue running.
The problem, however, is the “finish” node will include the empty item and you would have to get rid of it yet again (that is remove the empty object), utilizing Filter, for example.
As I’m learning the solution, this is a very important point to understand. I understand the ‘by design’ technical approach that can be very different from the high level workflow logic.
So, in my case, removing items in a loop structure needs a different approach.