# Forcing the quality of a tag using python script

**URL:** <https://forum.inductiveautomation.com/t/forcing-the-quality-of-a-tag-using-python-script/5565>\
**Category:** Ignition\
**Created:** [December 12, 2012, 11:46am UTC](https://forum.inductiveautomation.com/t/forcing-the-quality-of-a-tag-using-python-script/5565 "2012-12-12T11:46:50Z")\
**Posts on this page:** 3\
**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 12, 2012, 11:46am UTC](https://forum.inductiveautomation.com/t/forcing-the-quality-of-a-tag-using-python-script/5565/1 "2012-12-12T11:46:50Z")

</div>

I tried the following script through a button (event handler) in a popup.

```auto
system.Tag.writeToTag("Path/to/tag".Quality,410)
```

I got an error

‘Error writing : Specified tag does not allow write’

I have all the permission for writing and i can also write value to the tag, so it can’t be a permission error.  
I am trying to do this as I could disable the tag and activate its overlay.

Please help me resolve the error and solve this problem.  
Looking forward to a solution

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [December 12, 2012, 4:17pm UTC](https://forum.inductiveautomation.com/t/forcing-the-quality-of-a-tag-using-python-script/5565/2 "2012-12-12T16:17:58Z")

</div>

You cannot write a value to the quality of a tag. You can enable or disable a tag. You can set the quality of a component to activate an overlay without affecting the tag.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [June 10, 2019, 5:26pm UTC](https://forum.inductiveautomation.com/t/forcing-the-quality-of-a-tag-using-python-script/5565/3 "2019-06-10T17:26:03Z")

</div>

You actually can write the quality and timestamp to a tag. See this post:

[http://forum.inductiveautomation.com/t/change-tag-quality-in-script/25667/4?u=travis.cox](http://forum.inductiveautomation.com/t/change-tag-quality-in-script/25667/4?u=travis.cox)
