# system.historian.queryRawPoints(...) vs system.tag.queryTagHistory(..)

**URL:** <https://forum.inductiveautomation.com/t/system-historian-queryrawpoints-vs-system-tag-querytaghistory/115197>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 22, 2026, 12:33pm UTC](https://forum.inductiveautomation.com/t/system-historian-queryrawpoints-vs-system-tag-querytaghistory/115197 "2026-04-22T12:33:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Dalzotto](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jorge\_Dalzotto](https://forum.inductiveautomation.com/u/Jorge_Dalzotto)\
**Post date:** [April 22, 2026, 12:33pm UTC](https://forum.inductiveautomation.com/t/system-historian-queryrawpoints-vs-system-tag-querytaghistory/115197/1 "2026-04-22T12:33:48Z")

</div>

Hi guys,

I found some unexpected behavior with these two “equivalent” functions.

I’m using the “long path” format **([db\_connect/project\_name:provider]PathTag)** to access the historian of different systems, and I noticed that it no longer works as before in scripting (although it does work in the Easy Chart component).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/7/474491c399e6d517a9c6c1ebba2766dfa94267e4.png)

_**(same input--\>different** **output)**_

Is this a bug, or is this the “new” working format? In the latter case, is there a workaround for this situation?

Best regard

---

<div class="post-metadata">

**Author:** ![Jorge\_Dalzotto](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jorge\_Dalzotto](https://forum.inductiveautomation.com/u/Jorge_Dalzotto)\
**Post date:** [April 22, 2026, 3:01pm UTC](https://forum.inductiveautomation.com/t/system-historian-queryrawpoints-vs-system-tag-querytaghistory/115197/2 "2026-04-22T15:01:06Z")

</div>

Hi, I can resolved (in theory - I still need to run some tests) the problem...but I comment ones topics:  
There are another format (maybe new) for history path for a "system.historian" functions:

The old format was:

`[<histprov>/<gatewayName>:<provider>]<tag_path>`

And the “new” format is:

`<histprov>:mariadb:/sys:<gatewayName>:/prov:<provider>:/tag:<tag_path>`

Also, `system.historian.queryRawPoints(...)` does not have the `aggregationModes` parameter, but there is a new function, `system.historian.queryAggregatedPoints(...)`, which is useful for my purposes.

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

(Maybe this will be useful for someone).

---

<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:** [April 22, 2026, 3:34pm UTC](https://forum.inductiveautomation.com/t/system-historian-queryrawpoints-vs-system-tag-querytaghistory/115197/3 "2026-04-22T15:34:02Z")

</div>

There are three tag path formats relevant here:

- Basic Tag Paths with just a tag provider,
- Basic Tag Paths with historian+gateway+tag provider stuffed into the provider brackets, and
- Qualified Paths with a flexible expanded format.

The first format just delegates to the tag provider to supply the actual details needed to find the history. The other formats must spell it all out. The newer QualifiedPath format was created for 8.x and is the preferred form in Perspective. The expanded Basic TagPath format is the legacy Vision format.

Scripts are supposed to accept all three.

Discussion here with more details (and further links):

> [@Historical Tag Provider Issues](https://forum.inductiveautomation.com/t/historical-tag-provider-issues/103757):
>
> I will start with what I am trying to accomplish here first. So I have a dynamic tag history binding using the model from the manual. key [array] [0] {object} aggregate value alias value path value [1]{object} aggregate value alias value path value ... Now I have done this same thing other places so I know that portion is correct. But when I have a tag path in there. I get the all mysterious: "No historical tag information could be found for any of the specified paths" showing up …

If the "old format" is broken for you (in scripts), that is a bug that should be reported. I'm not really sure how well Perspective is **supposed** to support the 2nd form, or how well Vision is **supposed** to support the 3rd form. Documentation is lacking, and firm details to even write the documentation is hard to find.
