# isAlarmActive returns a quality Bad\_NotFound

**URL:** <https://forum.inductiveautomation.com/t/isalarmactive-returns-a-quality-bad-notfound/98292>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [November 6, 2024, 5:00pm UTC](https://forum.inductiveautomation.com/t/isalarmactive-returns-a-quality-bad-notfound/98292 "2024-11-06T17:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zied\_Brahmi](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zied\_Brahmi](https://forum.inductiveautomation.com/u/Zied_Brahmi)\
**Post date:** [November 6, 2024, 5:00pm UTC](https://forum.inductiveautomation.com/t/isalarmactive-returns-a-quality-bad-notfound/98292/1 "2024-11-06T17:00:51Z")

</div>

Hello,  
I have a weird behaviour. I have a boolean expression tag which checks if an alarm on a tag is on, and that tag is on the same level in the tree structure of the folder so basically I m doing this expression :

```python
isAlarmActive({[.]Tag name}) # I m picking it with the choose tag option so the path is right 

```

Note that this is done inside an UDT

but I have Bad\_NotFound in the quality and the alarm is active on the other tag and I m not getting a true.

any ideas? thank you

I might be doing stupid stuff because I m not experienced with ignition.

---

<div class="post-metadata">

**Author:** ![Samuel\_Sueur](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Samuel\_Sueur](https://forum.inductiveautomation.com/u/Samuel_Sueur)\
**Post date:** [November 7, 2024, 8:00am UTC](https://forum.inductiveautomation.com/t/isalarmactive-returns-a-quality-bad-notfound/98292/3 "2024-11-07T08:00:43Z")

</div>

Hi,

`isAlarmActive` is expecting a path as an argument.

> **[isAlarmActive | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/expression-functions/alarming/isAlarmActive)**
>
> Returns whether there are active alarms that match the provided criteria.

Using the curly brace notation without adding a suffix to it returns the tag value, and not the tag path.

Try using `isAlarmActive({[.]Tag name.path})` and see if it works ?

You may also consider using` {[.]Tag name.path} + "*"` as an argument so that it matches everything after your tag path (can't test this right now)

---

<div class="post-metadata">

**Author:** ![Zied\_Brahmi](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zied\_Brahmi](https://forum.inductiveautomation.com/u/Zied_Brahmi)\
**Post date:** [November 7, 2024, 9:04am UTC](https://forum.inductiveautomation.com/t/isalarmactive-returns-a-quality-bad-notfound/98292/4 "2024-11-07T09:04:49Z")

</div>

it works like a charm with the .path! Thank you
