How can I continue the execution of a router when the output of the first module is empty?

:bullseye: What is your goal?

Continue the execution even when the output is empty

:thinking: What is the problem & what have you tried?

I have a first module Watch Channel Messages on Discord. it runs daily and gets all messages of a channel and then does stuff.

When there’s no new messages, the scenario runs, but doesnt flow to the next steps, since there’s no output

Can I make it flow to the next module regardless of the output?

1 Like

Hey there,

add an aggregator module after the Watch module. Then it will continue the follow regardless if anything was found or not.

1 Like

it doesnt work. the Watch module produces 0 bundles as output and the aggregator will have 0 items

2 Likes

Hi @Lovesty_Somnia ,

At the moment, it is not possible to force a scenario to continue when a Watch module returns no output.

When the Watch Channel Messages (Discord) module finds no new messages, it outputs zero bundles, so the scenario stops and does not proceed further. This behavior is expected and cannot be changed directly.

However, if your requirement is to continue the flow even when no new data exists, you can achieve this by using the List-type modules provided by Discord instead of a Watch module.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

Hi Lovesty, If you want the scenario to always continue daily, even when there are zero messages, use a Scheduler as the first module and then run the Discord step after it. That way the scenario triggers every day regardless of whether the Discord module returns any data.

If you keep Watch Channel Messages as the first module, the scenario won’t continue when there’s no output unless you add a fallback that creates a bundle for the next steps.

If you can share a screenshot of your first modules, it’ll be easier to suggest the cleanest setup.

The aggregator will have an array with 0 items, not 0 bundles.

i see. I’ll lookup List modules

Hi @Lovesty_Somnia ,

Once you check the List modules, you can configure the scenario to run on a schedule so it always returns a bundle (even if the list is empty), which allows the flow to continue to the next modules.
If you face any issues while setting it up, feel free to share the details and we can look into it further.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

Welcome to the Make community!

I have already answered your question on Reddit.

On there, I said:

“Watch” is a polling trigger. What you want is a “Search/List” module.

Watch trigger modules do not proceed if there are no new items.

which is consistent to what the official Make documentation says in the Help Centre:

A scheduled scenario run that checks for new data in a service, but returns no data, is called a check run.
– source

Check run: A run scheduled by a polling trigger that did not return new data.
– source

and can also be found in the Make Academy:

Modules, scheduling and bundles

  • Blueprints
  • Different types of modules - search
  • Different types of modules - action
  • Introduction to triggers
  • Scheduling your scenario
  • Introduction to bundles

Introduction to Operations

  • Introduction to operations and operations counting
  • Check runs of scheduled scenarios
  • Subscriptions

Links & Guides

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I’d also recommend going through the Make Academy if you haven’t yet!

Learn Make

How-Tos

Useful to Know

My Custom App — Absolutely Free!

Save development time and operation credits with these utility modules: Chunk Text; Chunk Array; Chunk Words; Multiple Find & Replace; Collection to Array/String List; Execute JavaScript; Estimate Tokens; Calculate Difference Between Two Dates; Get Next Business Day (with holidays); List Upcoming Dates of Day of Week; and more!

Hope this helps! If you are still having trouble, please provide more details.

— @samliew