# system.alarm.queryStatus broken in 7.9.5?

**URL:** <https://forum.inductiveautomation.com/t/system-alarm-querystatus-broken-in-7-9-5/16279>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [December 11, 2017, 8:20am UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-broken-in-7-9-5/16279 "2017-12-11T08:20:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 11, 2017, 8:20am UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-broken-in-7-9-5/16279/1 "2017-12-11T08:20:34Z")

</div>

I was using this function in 7.9.4 which was working, however after upgrading to 7.9.5, it appears to be broken…

I’ve been trying to test with a simplified case:  
`system.alarm.queryStatus(source=["*Winery/Tank Farms/White Sparkling*"],state=['ActiveUnacked'])`  
but this is returning no results (an empty dataset []), when I have checked there are many alarms within this folder.

If I leave out the source filter and print the source property of the resultset, e.g.  
`for x in system.alarm.queryStatus(state=['ActiveUnacked']): print x.source`  
I get a list of presumably all of the alarms, with some fitting the filter above shown below:

```auto
prov:default:/tag:Winery/Tank Farms/White Sparkling/Tanks/B6869/Pressure/Alarms/High:/alm:Alarm
prov:default:/tag:Winery/Tank Farms/White Sparkling/Tanks/B6868/Pressure/Alarms/High:/alm:Alarm
prov:default:/tag:Winery/Tank Farms/White Sparkling/Tanks/B6859/Pressure/Alarms/High:/alm:Alarm
prov:default:/tag:Winery/Tank Farms/White Sparkling/Tanks/B6852/Pressure/Alarms/High:/alm:Alarm
prov:default:/tag:Winery/Tank Farms/White Sparkling/Tanks/B6907/Temperature/Alarms/Low:/alm:Alarm

```

Am I missing something, or has 7.9.5 introduced a bug with this?  
Cheers

Edit: I was actually originally using `path` instead of `source`. I have tried the same code above using both; neither work

Edit 2: I’ve found a workaround for this in the interim which is a little strange…  
This works:

```auto
system.alarm.queryStatus(source=["*:/tag:Winery/Tank Farms/White Sparkling*"],state=['ActiveUnacked'])

```

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [December 11, 2017, 12:37pm UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-broken-in-7-9-5/16279/2 "2017-12-11T12:37:25Z")

</div>

This is a known issue which will be fixed in 7.9.6 according this post :

> [@7.9.5 Alarm Source Filter Wildcard Not Working](http://forum.inductiveautomation.com/t/7-9-5-alarm-source-filter-wildcard-not-working/16055):
>
> Hey all, I’m having an issue with a wildcard (\*) filter not working in the source filter of my Alarm Status Table, and not working in the Path of a system.alarm.queryStatus script. Incidentally the issue is NOT affecting my Alarm Journal Table. Similar to what was 1st reported [here](http://forum.inductiveautomation.com/t/7-6-alarm-journal-source-filter-wildcard-not-working/6467) except this is a 7.9.5 install. When trying to use the filter \*Main Plant\* alarms that should be shown are not. Definitely not the goal I’m after!

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 19, 2018, 4:46am UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-broken-in-7-9-5/16279/3 "2018-01-19T04:46:18Z")

</div>

I’ve found a workaround in the interim. If you add `'*:/tag:'` to the start it works. This also works with `'*:/tag:*'`

E.g.

```auto
system.alarm.queryStatus(source=["*:/tag:Winery/Tank Farms/White Sparkling*"],state=['ActiveUnacked'])

system.alarm.queryStatus(source=["*:/tag:*/White Sparkling*"],state=['ActiveUnacked'])

```

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 19, 2018, 10:36am UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-broken-in-7-9-5/16279/4 "2018-01-19T10:36:22Z")

</div>

Thanks for the workaround, I’m still in 7.9.4 for some critical apps, so I will wait for 7.9.6 final release

---

<div class="post-metadata">

**Author:** ![akettner](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@akettner](https://forum.inductiveautomation.com/u/akettner)\
**Post date:** [February 19, 2021, 4:07pm UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-broken-in-7-9-5/16279/5 "2021-02-19T16:07:58Z")

</div>

I know this is a old topic, but wanted to note I just went through the same process as nminchin with 7.9.14.
