# Issue when using system.alarm.queryStatus on a remote tag provider

**URL:** <https://forum.inductiveautomation.com/t/issue-when-using-system-alarm-querystatus-on-a-remote-tag-provider/73036>\
**Category:** Ignition\
**Tags:** ignition81, ignition79\
**Created:** [April 28, 2023, 5:43pm UTC](https://forum.inductiveautomation.com/t/issue-when-using-system-alarm-querystatus-on-a-remote-tag-provider/73036 "2023-04-28T17:43:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_fitzpatrick](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@andrew\_fitzpatrick](https://forum.inductiveautomation.com/u/andrew_fitzpatrick)\
**Post date:** [April 28, 2023, 5:43pm UTC](https://forum.inductiveautomation.com/t/issue-when-using-system-alarm-querystatus-on-a-remote-tag-provider/73036/1 "2023-04-28T17:43:41Z")

</div>

Hi,

Im having an issue with the alarm info not able to aquire a specific event from a remote tag in the alarm journal.

this is what i have in the scrip console

this is the script:

id = 'ede2c0eb-0b4a-43bb-a4be-956812ba9f8d'  
system.alarm.queryStatus(provider=["BHS\_Remote"])

system.alarm.queryStatus(all\_properties = [['EventId','=',id]], provider=["BHS\_Remote"])

result :

> > >

[{Source: 'prov:bhs\_remote:/tag:AlarmStatus:/alm:Alarm', Display Path: 'SAC server', UUID: 'ede2c0eb-0b4a-43bb-a4be-956812ba9f8d', Current State: 'Active, Acknowledged', Priority: 'Diagnostic', Active Data: {com.inductiveautomation.ignition.common.alarming.config.BasicAlarmProperty@5453c7b3=1.0, eventValue=true, notes=Issue with SAC Server, systemAck=true, name=Alarm, eventTime=Fri Apr 28 11:17:18 EDT 2023, label=SAC, priority=Diagnostic, displayPath=SAC server, ackMode=Unused}, Clear Data: null, Ack Data: {eventTime=Fri Apr 28 11:17:18 EDT 2023}, Runtime Data: {isShelved=false}}]

> > >

is it possible that the uuid is comming from a the remote gateway ? and is it possible access UUID from a remote gateway ?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 29, 2023, 2:18am UTC](https://forum.inductiveautomation.com/t/issue-when-using-system-alarm-querystatus-on-a-remote-tag-provider/73036/2 "2023-04-29T02:18:11Z")

</div>

Provider is a queryStatus argument, not an all\_properties key, so this would be the correct way to write your query:

```auto
UUID = 'ede2c0eb-0b4a-43bb-a4be-956812ba9f8d'
system.alarm.queryStatus(provider = 'BHS_Remote', all_properties=[('EventId', '=', UUID)])

```

....but the UUID is unique, so if you have it, I don't see why you would need to specify the provider to get the object you want.

This will work fine:

```auto
UUID = 'ede2c0eb-0b4a-43bb-a4be-956812ba9f8d'
system.alarm.queryStatus(all_properties=[('EventId', '=', UUID)])

```

Quick pedantic note: `id` probably shouldn't be used as a local variable since it is an inherent python function.

---

<div class="post-metadata">

**Author:** ![andrew\_fitzpatrick](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@andrew\_fitzpatrick](https://forum.inductiveautomation.com/u/andrew_fitzpatrick)\
**Post date:** [May 1, 2023, 6:53pm UTC](https://forum.inductiveautomation.com/t/issue-when-using-system-alarm-querystatus-on-a-remote-tag-provider/73036/3 "2023-05-01T18:53:39Z")

</div>

Hi

the following works fine when checking a UUID from the local provider work fine, but if its from a remote provider it does not work, it return an empty array
