# Vision 8.011 System.Alarm.Acknowledge, Acknowledge Alarms Still Unacknowledged

**URL:** <https://forum.inductiveautomation.com/t/vision-8-011-system-alarm-acknowledge-acknowledge-alarms-still-unacknowledged/34379>\
**Category:** Ignition\
**Created:** [May 3, 2020, 2:11am UTC](https://forum.inductiveautomation.com/t/vision-8-011-system-alarm-acknowledge-acknowledge-alarms-still-unacknowledged/34379 "2020-05-03T02:11:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwingert](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kwingert](https://forum.inductiveautomation.com/u/kwingert)\
**Post date:** [May 3, 2020, 2:11am UTC](https://forum.inductiveautomation.com/t/vision-8-011-system-alarm-acknowledge-acknowledge-alarms-still-unacknowledged/34379/1 "2020-05-03T02:11:49Z")

</div>

```auto
try:
    if( system.tag.read("[default]Line/ClearFaults").value == 1):
        results = system.alarm.queryStatus(source=["*Line*"])
            for item in results:
                eventID = "%s" % (item.getId())
                system.alarm.acknowledge([eventID], None)
except Exception as e:
    print("Error:" + str(e))

```

Running this client event script to remotely acknowledge alarms.

All alarms acknowledge with this script but some reappear a few seconds later as unacknowledged.

I made an expression tag to monitor the unacknowledged alarm count and using this script initially it went from 120 -\> 0 to 88.  
Running again it went from 88 -\> 0 to 88.

---

<div class="post-metadata">

**Author:** ![arsalan.junaid](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arsalan.junaid/32/48885_2.png) [@arsalan.junaid](https://forum.inductiveautomation.com/u/arsalan.junaid)\
**Post date:** [June 19, 2023, 4:20am UTC](https://forum.inductiveautomation.com/t/vision-8-011-system-alarm-acknowledge-acknowledge-alarms-still-unacknowledged/34379/2 "2023-06-19T04:20:54Z")

</div>

> [@kwingert](#):
>
> unning this client event script to remotely acknowledge alarms.

Hi found this code and it works for me on perspective client.

```auto
def runAction(self, event):
	"""
	This event is fired when the 'action' of the component occurs.

	Arguments:
		self: A reference to the component that is invoking this function.
		event: An empty event object.
	"""
	#Alarm states to be cleared
	state = ["ActiveUnacked", "ClearUnacked"]
	#Create Dataset containing alarms in desired state
	result = system.alarm.queryStatus(state = state).getDataset()
	#Convert to python dataset
	alarmDataset = system.dataset.toPyDataSet(result)
	alarmNames = []
	#Iterate over dataset to get a list of alarm names
	for x in alarmDataset:
		alarmNames.append(x[0])
    #pass alarm name list, comment, username
	system.alarm.acknowledge(alarmNames, "Batch Ack", "Administrator")

```
