isAlarmActive returns a quality Bad_NotFound

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 :

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.

Hi,

isAlarmActive is expecting a path as an argument.

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)

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