# Error Handling When No Bundle Generated

**URL:** <https://community.make.com/t/error-handling-when-no-bundle-generated/23283>\
**Category:** Questions\
**Tags:** error\
**Created:** [January 3, 2024, 6:56pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283 "2024-01-03T18:56:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jo\_Wang](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jo_wang/32/22612_2.png) [@Jo\_Wang](https://community.make.com/u/Jo_Wang)\
**Post date:** [January 3, 2024, 6:56pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/1 "2024-01-03T18:56:40Z")

</div>

I’m setting up a scenario to look through my emails and scrape data out of an email I get regularly. However, I want some kind of notification if this fails, such as if the search terms I’m using are suddenly no longer valid because the from email address has changed or something. At present, if the scenario runs and the Gmail module doesn’t find an email that matches, it doesn’t generate a bundle. I’d like to figure out how to get some kind of notification when that module fails to generate a bundle.

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [January 4, 2024, 12:10am UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/2 "2024-01-04T00:10:35Z")

</div>

Hi Jo,

could you please share some screenshots of how your scenario is running? Maybe you can add a router and a filter and if Total Number of Bundles equals 0 you can go to a route that sends you a notification?

---

<div class="post-metadata">

**Author:** ![Jo\_Wang](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jo_wang/32/22612_2.png) [@Jo\_Wang](https://community.make.com/u/Jo_Wang)\
**Post date:** [January 4, 2024, 12:40am UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/3 "2024-01-04T00:40:19Z")

</div>

Here’s a screenshot. I can’t found “Total number of bundles” in the filter conditions. Can you point me in the right direction?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/8/e820858093fdfb3132956affbbc252234b5fd864.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [January 4, 2024, 12:49am UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/4 "2024-01-04T00:49:41Z")

</div>

Welcome to the Make community!

Only “Search” modules output “Total number of bundles”.

What you are using, “Watch” trigger modules, do not output any bundles when there are no new items. When “Watch”-type modules are run and do not output any bundles, that is called a “check run” – and only one operation is consumed.

It is possible to use a “Search” module as your trigger, only if the results contain the date received, so that you can ignore items that were previously handled by the last scenario run.

---

<div class="post-metadata">

**Author:** ![Jo\_Wang](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jo_wang/32/22612_2.png) [@Jo\_Wang](https://community.make.com/u/Jo_Wang)\
**Post date:** [January 4, 2024, 1:46am UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/5 "2024-01-04T01:46:49Z")

</div>

And it doesn’t look like Gmail has a Search module.

Any other ideas?

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [January 4, 2024, 1:57am UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/6 "2024-01-04T01:57:21Z")

</div>

You can use the generic [Email app](https://www.make.com/en/integrations/email) instead of the Gmail app.

The Email app has a search module called “[Get Emails](https://www.make.com/en/help/tools/email)”, which can filter out results by date (like I mentioned previously).

 ![Screenshot_2024-01-04_090114](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/5/6564fa12234200fb7cd5d235a939450287293096.png)

The Email app is also able to handle Gmail accounts.

For more information on how to connect to Gmail using the Email app, see [https://www.make.com/en/help/tools/email](https://www.make.com/en/help/tools/email)

---

<div class="post-metadata">

**Author:** ![Jo\_Wang](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jo_wang/32/22612_2.png) [@Jo\_Wang](https://community.make.com/u/Jo_Wang)\
**Post date:** [January 4, 2024, 1:47pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/7 "2024-01-04T13:47:39Z")

</div>

Sorry if I’m missing something. I’ve set up the Get Emails module and it still doesn’t look like I’m getting a “Total number of bundles” filter condition?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/5/359952ebcc8c0a49b7584645efc8d99ab433d186.png)

---

<div class="post-metadata">

**Author:** ![Jo\_Wang](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jo_wang/32/22612_2.png) [@Jo\_Wang](https://community.make.com/u/Jo_Wang)\
**Post date:** [January 4, 2024, 2:00pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/8 "2024-01-04T14:00:31Z")

</div>

Also, with the search module, I have to define the “From Date,” right? Is there a variable that I can use that specifies the last time the scenario was run?

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [January 4, 2024, 2:01pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/9 "2024-01-04T14:01:09Z")

</div>

Oh right, I forgot the handling for the Emails app is slightly different.

You’ll need to scroll all the way down and select

![Screenshot_2024-01-04_210135](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/2/f23c3ce77244a28255692d9984818d1a016508de.png)

Then, create a router with a fallback route

 ![Screenshot_2024-01-04_210100](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/4/d4dda8ad2241a994e7ab708ec4310f3e9a7aac5d.png)

and another route that checks for the existance of any field, i.e.: Subject

 ![Screenshot_2024-01-04_220127](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/6/96ddd25140adaea85f0937324cdafbd522c3447d.png)

---

<div class="post-metadata">

**Author:** ![Jo\_Wang](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jo_wang/32/22612_2.png) [@Jo\_Wang](https://community.make.com/u/Jo_Wang)\
**Post date:** [January 4, 2024, 2:03pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/10 "2024-01-04T14:03:49Z")

</div>

Ah. Okay. In which case, I can do this with the Watch module (and the Gmail module, for that matter), right?

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [January 4, 2024, 2:06pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/11 "2024-01-04T14:06:13Z")

</div>

> [@Jo\_Wang](#):
>
> I have to define the “From Date,” right? Is there a variable that I can use that specifies the last time the scenario was run?

Yes, there is. Just add the Make “List Scenario Logs” module with these settings.

 ![Screenshot_2024-01-04_220126](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/0/c0dfe1c6b190874a100a3af1a083b00024389670.png)

Then add the Timestamp variable to your “From” field.

 ![Screenshot_2024-01-04_220114](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/2/42196e27380cfb1f1c676c866b680e5adac8ccfb.png)

---

<div class="post-metadata">

**Author:** ![Jo\_Wang](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jo_wang/32/22612_2.png) [@Jo\_Wang](https://community.make.com/u/Jo_Wang)\
**Post date:** [January 4, 2024, 2:12pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/12 "2024-01-04T14:12:57Z")

</div>

Oh, okay, the watch module doesn’t have a “continue the execution of the route even if the module returns no results” option.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [January 4, 2024, 2:33pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/13 "2024-01-04T14:33:31Z")

</div>

> [@Jo\_Wang](#):
>
> Oh, okay, the watch module doesn’t have a “continue the execution of the route even if the module returns no results” option.

Yes, that is correct. Just follow the screenshots above.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 18, 2024, 2:42pm UTC](https://community.make.com/t/error-handling-when-no-bundle-generated/23283/14 "2024-01-18T14:42:39Z")

</div>


