# System.tag.write - Error

**URL:** <https://forum.inductiveautomation.com/t/system-tag-write-error/16997>\
**Category:** Ignition\
**Created:** [February 15, 2018, 7:54am UTC](https://forum.inductiveautomation.com/t/system-tag-write-error/16997 "2018-02-15T07:54:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ionuck](https://avatars.discourse-cdn.com/v4/letter/i/3d9bf3/32.png) [@ionuck](https://forum.inductiveautomation.com/u/ionuck)\
**Post date:** [February 15, 2018, 7:54am UTC](https://forum.inductiveautomation.com/t/system-tag-write-error/16997/1 "2018-02-15T07:54:50Z")

</div>

Hi,

I have a short script in actionPerformed event for a button that should write a reset alarm OPC tag.  
However it doesn’t work and I get this error:  
ERROR [ClientTagUtilities-AWT-EventQueue-2] Error writing to tag Senzori PC/PMPC Valea Cerbului/Reset alarme  
Bad; unspecified.

The script is:  
tagname = event.source.parent.Nume\_tag + “/Reset alarme”  
system.tag.write(tagname, 1)

Am I missing something?  
Any advice please?

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [February 15, 2018, 8:05am UTC](https://forum.inductiveautomation.com/t/system-tag-write-error/16997/2 "2018-02-15T08:05:39Z")

</div>

Is your tag connected? Can you write something in it manually (using the tag browser)? Do the paths match up (you can get the path of a tag by copying the path and pasting it in some text field)?
