I have a use case where the sql select query has returned me a total of 89 input fields and I want to process these 89 fields in a batch of 10, each batch should reach till slack node (last node) and again it should return to second batch and again should reach to slack node so in total this should be running for 9 times in a loop, until all the output fields are run which are returned by slack and once the batches are executed it should stop execution
Tried the split batch node but this is not working as expected, any suggestions are appreciated, attaching the screen shot of my code as reference
We have installed the new version of N8N and we are still facing the same error
This is the overall scenario
Http → Fetches the user information
SQL Node → Has an output of 80 fields followed by ID and channel name
Http node → Invite a user to slack channel
If node → If user is already present send a message to user that, you’re already present
If Not present send message to user that you’re added to slack channel
Limitation here we want to add the user in a batch of 10 and sent message to user, wait for a minute and then process the second batch sent message to slack and the loop should end after all the nodes are processed
If we written the below flow but it is only processing the first batch and performing the operation for second batch
Hmm, using loops within loops sometimes has unexpected side effects. Can I ask why you need to post in batches of 10 and then wait 1 minute before processing the next one - can’t you just use a ‘loop over items’ with a batch size of 1 and add a wait between each operation?
We have a limitation of adding user to slack channels as we can add a user to 50 slack channels within a minute in order to be more specific and cautious we want to add a user to 10 slack channels per minute
As per your suggestion, we have kept only 1 loop over items and tried the execution and this works only for the 1st batch of items and then it re-runs on the first batch of items only and it doesn’t go to second batch of items