# Evaluating tag write quality codes in scripts

**URL:** <https://forum.inductiveautomation.com/t/evaluating-tag-write-quality-codes-in-scripts/30984>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [December 30, 2019, 9:53pm UTC](https://forum.inductiveautomation.com/t/evaluating-tag-write-quality-codes-in-scripts/30984 "2019-12-30T21:53:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 9, 2022, 12:24pm UTC](https://forum.inductiveautomation.com/t/evaluating-tag-write-quality-codes-in-scripts/30984/7 "2022-02-09T12:24:47Z")

</div>

im pretty sure the **sqltags library** is an outdated, so the enum probably is no good anymore or moved to a different location,  
what version are you running?

> [@Tags related changes from Ignition 7.9 to 8.1](https://forum.inductiveautomation.com/t/tags-related-changes-from-ignition-7-9-to-8-1/55587/2):
>
> (I’m not an expert in either the old or the new tag system) You will hopefully be able to switch to the new ManagedTagProvider concept; it’s a simpler scaffolding that helps with setting up the basic idea of “Java code that provides Ignition tags”. I’d start from the SDK example and work from there: As a general rule: Anything under the sqltags package is deprecated or outright removed.

Edit:  
yup seems this should work instead now on newer version:

```auto
from com.inductiveautomation.ignition.common.model.values import QualityCode	
res = system.tag.readBlocking(["[default]Components/oneShot"])
return QualityCode.Good == res[0].quality

```

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/d/dd05e1063f3be310710987530576c15663f283b3.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/evaluating-tag-write-quality-codes-in-scripts/30984)._
