# Finalize scenario if there is no image to iterate through Iterator module

**URL:** <https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226>\
**Category:** Questions\
**Tags:** iterator\
**Created:** [September 6, 2024, 9:02am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226 "2024-09-06T09:02:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [September 6, 2024, 9:02am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/1 "2024-09-06T09:02:05Z")

</div>

Hello Makers, I have a scenario that works perfectly.

I’ve got 1 issue when there is no images available, scenario stops through the “Iterator” module. Actually, those images are not necessary, so I would like the scenario to continue running until the end.

Is there a simple way to bypass and finalize the scenario if there is no image available?

```auto
{{ifempty([...]; add(emptyarray; "pasdephoto"))}}

```

 ![Screenshot 2024-09-06 à 10.53.32](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/b/6b0cef3c13faf3a93ac625038cc270cfdb4d0be8.png)

**Empty array stops the scenario**

 ![Screenshot 2024-09-06 à 10.43.35](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/1/51636ec10b46ebe17436d93f6aeb5a9bc608a7ec.jpeg)

I tried the solution from the following topic but I admit that it’s not clear for me and it didn’t work :

> [@Continue Operation if there is no image to iterate](https://community.make.com/t/continue-operation-if-there-is-no-image-to-iterate/1510):
>
> I seem to be having an issue with my scenario, where the information will only continue if there is an image that runs through the “Iterator” module. Sometimes there are no images available, so I would like the scenario to continue running. Is there a way to bypass this if there is no image available?

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [September 9, 2024, 6:39pm UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/2 "2024-09-09T18:39:40Z")

</div>

Anyone to help me please?

That said, before trying {{ifempty([…]; add(emptyarray; “pasdephoto”))}}, I tried :

```auto
{{ifempty([...];ignore)}}

```

It didn’t work anyway. I tried several things but I really don"t how to force to continue the scenario.

---

<div class="post-metadata">

**Author:** ![abhilash\_naik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/abhilash_naik/32/48563_2.png) [@abhilash\_naik](https://community.make.com/u/abhilash_naik)\
**Post date:** [September 9, 2024, 7:39pm UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/3 "2024-09-09T19:39:41Z")

</div>

tried using error handlers ? like ignore and commit

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [September 10, 2024, 6:01am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/4 "2024-09-10T06:01:10Z")

</div>

Perhaps you can use a router and route the paths depending on if the array is empty or not.

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [September 10, 2024, 7:23am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/5 "2024-09-10T07:23:15Z")

</div>

Thank you @LinkYourTech . Is there nothing simpler?

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [September 10, 2024, 7:44am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/6 "2024-09-10T07:44:48Z")

</div>

If you use an aggregator right after the iterator the scenario will continue even though there are empty values. But I do not know how you need to map your modules after that iterator so not sure if this is something you can use.

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [September 11, 2024, 12:44pm UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/7 "2024-09-11T12:44:26Z")

</div>

Thank you @LinkYourTech , as you said, I tried but I don’t know how to map the aggregator.

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [September 11, 2024, 12:45pm UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/8 "2024-09-11T12:45:39Z")

</div>

By the way, I’m sorry to insist but I had the same issue this morning again and again :

 ![Screenshot 2024-09-11 à 14.41.00](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/a/0a3579cc2f9901499ddd446bffea73e0609d0ecb.jpeg)  
 ![Screenshot 2024-09-11 à 14.41.11](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/a/0a4ca0991e928530d65df58036a67229ee766678.png)

Makers, @Bjorn.drivn , let me know y’all if you have any idea?

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [September 11, 2024, 11:53pm UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/9 "2024-09-11T23:53:23Z")

</div>

Issue is your sending emails after the iterator. If you send an empty value to the fields in the emails it will throw an error. Why do you want this scenario to continue?

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [September 12, 2024, 6:48am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/10 "2024-09-12T06:48:46Z")

</div>

I necessarily need the scenario to send me an email at the end to notify me depending on the first webhook input data.

By the way, I set up a filter right before the Iterator, if data pass through this filter, it means that I need to be notified !

> Issue is your sending emails after the iterator.

It’s not really true because the Set variable module is already off before Email module

---

<div class="post-metadata">

**Author:** ![LinkYourTech](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@LinkYourTech](https://community.make.com/u/LinkYourTech)\
**Post date:** [September 12, 2024, 7:27am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/11 "2024-09-12T07:27:43Z")

</div>

> [@Garry\_V](#):
>
> By the way, I set up a filter right before the Iterator, if data pass through this filter, it means that I need to be notified !

Then you can just add a router before that iterator and move the email module that notifies you to that router. That way you will get the email notification even if the scenario doesnt progress after the iterator.

---

<div class="post-metadata">

**Author:** ![Garry\_V](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/garry_v/32/24933_2.png) [@Garry\_V](https://community.make.com/u/Garry_V)\
**Post date:** [September 12, 2024, 8:07am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/12 "2024-09-12T08:07:33Z")

</div>

I understand but the Iterator module is useful at the end for the Email content

---

<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:** [December 11, 2024, 11:19am UTC](https://community.make.com/t/finalize-scenario-if-there-is-no-image-to-iterate-through-iterator-module/54226/13 "2024-12-11T11:19:45Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


