# How to make a flow fail (return an error, exception)

**URL:** <https://community.homey.app/t/how-to-make-a-flow-fail-return-an-error-exception/110446>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [May 25, 2024, 8:35am UTC](https://community.homey.app/t/how-to-make-a-flow-fail-return-an-error-exception/110446 "2024-05-25T08:35:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 25, 2024, 1:20pm UTC](https://community.homey.app/t/how-to-make-a-flow-fail-return-an-error-exception/110446/4 "2024-05-25T13:20:23Z")

</div>

In 3+ years I’ve never experienced a flow _itself_ fails for unknown reasons  
It’s always:

- me: I did something stupid, like deleting a variable which still was used in a flow
- a variable which got an invalid value somehow
- app crash / paused app: this causes all related flowcards to become unavailable. The flow breaks, and stops functioning, but,  
This wonderful app monitors all those variables, breaks, errors and mistakes and notifies you: **[Flow Checker](https://community.homey.app/t/app-pro-flow-checker/50986)**

Advice: add **[Simple Log](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533)** app log cards to each and every part of your flows, to be able to search historical data.  
It even has a [script to add log cards to all flows](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/6).

---

_[View the full topic](https://community.homey.app/t/how-to-make-a-flow-fail-return-an-error-exception/110446)._
