# Get quality codes back from Historian queries using system.historian.queryRawPoints

**URL:** <https://forum.inductiveautomation.com/t/get-quality-codes-back-from-historian-queries-using-system-historian-queryrawpoints/112463>\
**Category:** Ignition\
**Tags:** ignition83\
**Created:** [November 26, 2025, 7:43pm UTC](https://forum.inductiveautomation.com/t/get-quality-codes-back-from-historian-queries-using-system-historian-queryrawpoints/112463 "2025-11-26T19:43:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonard.smit](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@leonard.smit](https://forum.inductiveautomation.com/u/leonard.smit)\
**Post date:** [November 26, 2025, 7:43pm UTC](https://forum.inductiveautomation.com/t/get-quality-codes-back-from-historian-queries-using-system-historian-queryrawpoints/112463/1 "2025-11-26T19:43:48Z")

</div>

Hi All,

Im using the new function in Ignition 8.3 to return the raw historized values, system.historian.queryRawPoints.

This only returns the timestamp and values, but not the quality code of the values stored.

Is there a way to get the quality codes included in the result set?

Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 26, 2025, 7:47pm UTC](https://forum.inductiveautomation.com/t/get-quality-codes-back-from-historian-queries-using-system-historian-queryrawpoints/112463/2 "2025-11-26T19:47:39Z")

</div>

Have you interrogated the dataset with [getQualityAt()](https://files.inductiveautomation.com/sdk/javadoc/ignition83/8.3.0/com/inductiveautomation/ignition/common/Dataset.html#getQualityAt(int,int))?

---

<div class="post-metadata">

**Author:** ![leonard.smit](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@leonard.smit](https://forum.inductiveautomation.com/u/leonard.smit)\
**Post date:** [November 26, 2025, 9:15pm UTC](https://forum.inductiveautomation.com/t/get-quality-codes-back-from-historian-queries-using-system-historian-queryrawpoints/112463/3 "2025-11-26T21:15:34Z")

</div>

Will give it a try,

I see it requires 2 parameters, one for the row and one for the column of the dataset. Will it provide different quality codes based on the timestamp or value columns?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 26, 2025, 9:18pm UTC](https://forum.inductiveautomation.com/t/get-quality-codes-back-from-historian-queries-using-system-historian-queryrawpoints/112463/4 "2025-11-26T21:18:32Z")

</div>

I would expect the timestamp column to always be good. The bad quality would be associated with an actual value, I would expect.

---

<div class="post-metadata">

**Author:** ![leonard.smit](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@leonard.smit](https://forum.inductiveautomation.com/u/leonard.smit)\
**Post date:** [November 26, 2025, 10:58pm UTC](https://forum.inductiveautomation.com/t/get-quality-codes-back-from-historian-queries-using-system-historian-queryrawpoints/112463/5 "2025-11-26T22:58:32Z")

</div>

Perfect!

Thanks for your help!

```python
{
  "success": true,
  "historian": "default",
  "tags": {
    "v1": "histprov:OPCData:/drv:default:default:/tag:default/Overview/CaseCount"
  },
  "start": "2025-11-15T00:00:00Z",
  "end": "2025-11-26T23:59:59Z",
  "dataType": "raw",
  "rowCount": 355,
  "limited": false,
  "data": [
    {
      "v1_quality_name": "Good",
      "v1": 34.485,
      "t": "2025-11-24T19:04:52.858Z",
      "v1_quality": 192
    },
    {
      "v1_quality_name": "Good",
      "v1": 99.85233333333333,
      "t": "2025-11-24T19:08:07.336Z",
      "v1_quality": 192
    },

```
