# Acknowledge alert through script

**URL:** <https://forum.inductiveautomation.com/t/acknowledge-alert-through-script/5592>\
**Category:** Ignition\
**Created:** [December 17, 2012, 2:00pm UTC](https://forum.inductiveautomation.com/t/acknowledge-alert-through-script/5592 "2012-12-17T14:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [December 17, 2012, 2:00pm UTC](https://forum.inductiveautomation.com/t/acknowledge-alert-through-script/5592/1 "2012-12-17T14:00:00Z")

</div>

Hi!

I have 150 UDT instances. I have enabled alerts for each of the 150 tags.  
I have linked it to a display and based on the alert condition I change the background color.  
I would like to acknowledge the alert using a pop up.  
this is how I do it;  
I click on the display and a pop up opens and a parameter is passed.  
I have 150 displays. the parameter that is passed is the tag number.  
I have a button on the popup which I would like to use to acknowledge the alert.  
I use the following code:

```auto
system.tag.writeToTag('path/to/tag'.AlertAcknowledged,1)
```

I get the error :

cannot write to tag, not allowed to write.

I have all the administrative rights to write to a tag.  
But I am unable to do so

Looking forward to a solution.

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [December 17, 2012, 4:25pm UTC](https://forum.inductiveautomation.com/t/acknowledge-alert-through-script/5592/2 "2012-12-17T16:25:52Z")

</div>

That value you tried to write to is one of the metadata values for a tag, it tells you if the current alert has been acknowledged or not, it doesn’t actually perform an “acknowledge” action. If you want to actually acknowledge the alert, you need to use system.alert.acknowledgeAlert():

[inductiveautomation.com/support/ … ealert.htm](http://inductiveautomation.com/support/usermanuals/ignition/system_alert_acknowledgealert.htm)
