# How to locate the number 'value' of a Tag's Data Quality

**URL:** <https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840>\
**Category:** Ignition\
**Created:** [July 24, 2019, 5:13pm UTC](https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840 "2019-07-24T17:13:21Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [October 15, 2020, 6:06pm UTC](https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840/14 "2020-10-15T18:06:18Z")

</div>

I’m not sure if this has been added to the SDK since this thread was started, but the QualityCode object now has a `getCode` method that returns the integer value.

You can do things like this in the scripting console:

```auto
>>> from com.inductiveautomation.ignition.common.model.values import QualityCode
>>> QualityCode.Error_TimeoutExpired.getCode()
-1073741049
>>> QualityCode.Error_Exception.getCode()
-1073741048

```

Very handy to us as developers of a custom SparkPlug edge device since we can only push quality codes in integer form and want them to be meaningful in Ignition.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840)._
