Hi all,
This has been driving me nuts and the AI tool does not seem to resolve it at all.
I have a very simple scenario:
I get today’s date
Add 1 day to it and set the time to 00:00.
I then set another date to tomorrow and 23:59:59 so I cover the entire day.
I check a Google Calendar for any events happening tomorrow
I post a message to Discord that simply says “We have these events planned tomorrow” with the items from the Calendar widget.
The dates are fine, the calendar connection is fine, it works when I find events and posts a single message as I would like. However, when there are NO events, it still posts the “We have these events planned tomorrow:” and then nothing.
If the Calendar module doesn’t return anything, I don’t want it to continue onwards and post to discord.
I have tried filters that check {{4.items}} exist, {{4.length}} > 0, Description != empty and all sorts, but no matter what, it ALWAYS continues to post an empty message to Discord.
The Text Aggregator and Array Aggregator modules will run at least once if “Stop processing after an empty aggregation” is not checked. That’s why an empty message is being sent to Discord.
If you don’t want to send an empty message, go to the show advanced settings of the text aggregator and click yes.
Combining both filters, It will fix the issue. If returned events are 0, Total number of Bundles in output will be 0, so it won’t pass ahead from filter except as aggregator(any aggregator) is ahead, it will move further. Like @RBalani said you can use tick box option to stop or continue execution in case of empty aggregation. but when you add 1 more check filter for text aggregator values exists or not, it will stop processing further if no value is present. As most people don’t’ use advanced option in aggregator such common mistakes occur.