# Tag quality via SparkPlug

**URL:** <https://forum.inductiveautomation.com/t/tag-quality-via-sparkplug/34456>\
**Category:** Ignition\
**Created:** [May 5, 2020, 6:32pm UTC](https://forum.inductiveautomation.com/t/tag-quality-via-sparkplug/34456 "2020-05-05T18:32:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:28pm UTC](https://forum.inductiveautomation.com/t/tag-quality-via-sparkplug/34456/2 "2020-10-15T18:28:47Z")

</div>

For anyone who's search lands them here first, there's an answer over here:

> [@How to locate the number 'value' of a Tag's Data Quality](http://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840/14):
>
> 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: \>\>\> 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…

---

_[View the full topic](https://forum.inductiveautomation.com/t/tag-quality-via-sparkplug/34456)._
