# Error handler based on filter

**URL:** <https://community.make.com/t/error-handler-based-on-filter/63928>\
**Category:** Questions\
**Tags:** error, airtable, filters, mapping\
**Created:** [December 13, 2024, 11:31am UTC](https://community.make.com/t/error-handler-based-on-filter/63928 "2024-12-13T11:31:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timo345](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Timo345](https://community.make.com/u/Timo345)\
**Post date:** [December 13, 2024, 11:31am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/1 "2024-12-13T11:31:41Z")

</div>

Question!  
I have a http module which calls for a python script. The data that comes from it is a json file. Then I parse the json. However, sometimes, a certain key has an error, determined by me. I then want it to go to a break module. For example: a date has passed, while this is actually not the case. I’d be ideal if it would become an incomplete execution with 0 retries so I can manually change it.  
Then another case: sometimes a key within the JSON is empty because of an inconsistency in the python script. Then I want to be able to filter them to a break module with retries.

Now I have tried adding an error handler with such filters but for some reason when the error occurs it does not go to the break module.  
Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [December 13, 2024, 11:22pm UTC](https://community.make.com/t/error-handler-based-on-filter/63928/2 "2024-12-13T23:22:03Z")

</div>

Hi @Timo345,

> [@Timo345](#):
>
> sometimes, a certain key has an error, determined by me.

What kind of error? No way to determine this during the scenario? More like you need human-in-the-loop?

> [@Timo345](#):
>
> Now I have tried adding an error handler with such filters but for some reason when the error occurs it does not go to the break module.

Could we possibly get a look at the module that has the error and the filters after it?

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [December 14, 2024, 7:36am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/3 "2024-12-14T07:36:13Z")

</div>

@Timo345

Please share the screenshot how did you add the break and filter.

**Regards,**  
_Msquare Automation - Platinum Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Timo345](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Timo345](https://community.make.com/u/Timo345)\
**Post date:** [December 15, 2024, 9:53am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/4 "2024-12-15T09:53:16Z")

</div>

Just a text based one: if something is empty or something contains something, then it’s an error.  
Attached 4 images. So the output comes from the Parse JSON, and I have a break attached with identical conditions as I have for a test that comes from the router that goes to a set variable. For the break it ignores it, but for the set variable it takes it in. I can see that the variables are not fully purple in the break module route, maybe that has something to do with it? But I don’t understand why. Then I ran a scenario where it did have the error and as you can see it goes to the set variable one but not to the break one…

 ![Screenshot 2024-12-15 104837](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/8/68ad9d01dc57e304c4fe8f56903721fdd4401d44.png)  
 ![Screenshot 2024-12-15 104825](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/e/ee590b03e7eaca3a04485e460245e894d29d12ce.png)  
 ![Screenshot 2024-12-15 104749](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/8/7814a0eceae781a9e3ec0931f0e31b16d3c59240.png)  
 ![Screenshot 2024-12-15 104720](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/4/34a8a8475e09d4681130d66729441e2f35762fbc.png)

---

<div class="post-metadata">

**Author:** ![Timo345](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Timo345](https://community.make.com/u/Timo345)\
**Post date:** [December 15, 2024, 9:53am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/5 "2024-12-15T09:53:28Z")

</div>

Sure!  
Attached 4 images. So the output comes from the Parse JSON, and I have a break attached with identical conditions as I have for a test that comes from the router that goes to a set variable. For the break it ignores it, but for the set variable it takes it in. I can see that the variables are not fully purple in the break module route, maybe that has something to do with it? But I don’t understand why. Then I ran a scenario where it did have the error and as you can see it goes to the set variable one but not to the break one…

 ![Screenshot 2024-12-15 104837](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/8/68ad9d01dc57e304c4fe8f56903721fdd4401d44.png)  
 ![Screenshot 2024-12-15 104825](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/e/ee590b03e7eaca3a04485e460245e894d29d12ce.png)  
 ![Screenshot 2024-12-15 104749](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/8/7814a0eceae781a9e3ec0931f0e31b16d3c59240.png)  
 ![Screenshot 2024-12-15 104720](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/4/34a8a8475e09d4681130d66729441e2f35762fbc.png)

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [December 15, 2024, 9:43pm UTC](https://community.make.com/t/error-handler-based-on-filter/63928/6 "2024-12-15T21:43:42Z")

</div>

> [@Timo345](#):
>
> I can see that the variables are not fully purple in the break module route, maybe that has something to do with it?

I could be wrong, but if module #281 fails to run, it wouldn’t have produced any output, therefore your variables can’t be solid purple.

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [December 16, 2024, 3:58am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/7 "2024-12-16T03:58:11Z")

</div>

Hey @Timo345

This mapping is not produced by json for error handler route. Break will only run if the parse json module will throw an error and the filter will be set for error message or error code or no filter.

In case of variable does not exist, you will have to define an action OR add error handler to the module where you are using the input from parse json and is required but error handler cannot work in this case.

**Regards,**  
_Msquare Automation - Platinum Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Timo345](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Timo345](https://community.make.com/u/Timo345)\
**Post date:** [December 16, 2024, 7:57am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/8 "2024-12-16T07:57:25Z")

</div>

The “problem” is that it does run correctly and always spits out a JSON. The thing is that sometimes a certain JSON key is empty. If that is the case it should break (even though it is a succes according to the module), and should retry until it it not empty

---

<div class="post-metadata">

**Author:** ![Timo345](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Timo345](https://community.make.com/u/Timo345)\
**Post date:** [December 16, 2024, 7:59am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/9 "2024-12-16T07:59:10Z")

</div>

I see. So is there any other way to add a break module? It just needs to retry is a json key is empty, that’s it. It will become a big module it I need to copy all the rest that comes after and paste it via a router until it will work… Or is that the only option?

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [December 16, 2024, 8:33am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/10 "2024-12-16T08:33:10Z")

</div>

Will it get the id after sometime automatically?? Is so, how much approximate time?@Timo345

And what are you mapping in set variable?

**Regards,**  
_Msquare Automation - Platinum Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Timo345](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Timo345](https://community.make.com/u/Timo345)\
**Post date:** [December 16, 2024, 8:47am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/11 "2024-12-16T08:47:20Z")

</div>

No it will need to retry calling for the python script in the http module. So in that case I want it to go to a break so that it can retry after 3-5 minutes. In other cases, I will let it go to a break module without retries because I need to manually input the key and fix issues in our python script.

---

<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:** [March 16, 2025, 9:01am UTC](https://community.make.com/t/error-handler-based-on-filter/63928/12 "2025-03-16T09:01:42Z")

</div>

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


