# Problem with system.tag.queryTagHisory

**URL:** <https://forum.inductiveautomation.com/t/problem-with-system-tag-querytaghisory/42637>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition80\
**Created:** [January 26, 2021, 9:23pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-tag-querytaghisory/42637 "2021-01-26T21:23:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [January 26, 2021, 9:23pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-tag-querytaghisory/42637/1 "2021-01-26T21:23:14Z")

</div>

When I run this function the queryTagHistory keeps bringing back an empty list, or at least the rowCount is 0.

```auto
	status = system.tag.queryTagHistory(["histprov:scada:/drv:tops scada:default:/tag:" + unit + "/status"], returnSize = 30, aggregationMode = "MinMax", noInterpolation = True, ignoreBadQuality = True)
	ind = system.tag.readBlocking(['[default]' + unit + '/StatusIndicator'])[0]

	ds = []

	i = 0
	for i in range(status.rowCount):
		color = Units.GetColor(status.getValueAt(i, "intvalue"), unit)
		label = GetLabel(ind.value, status.getValueAt(i, "intvalue"))
		data = {"Time": {"style": {"classes": color}, "value": status.getValueAt(i, "timestamp")}
				,"Status": {"style": {"classes": color}, "value": label}}
		ds.append(data)

	caller.props.data = ds

```

The string for the history should be good, I use a similar one in a graph in the project and it works fine. Any thoughts?Thx, jake

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [January 26, 2021, 11:01pm UTC](https://forum.inductiveautomation.com/t/problem-with-system-tag-querytaghisory/42637/2 "2021-01-26T23:01:38Z")

</div>

Nm, got it. The function is just looking for the normal tag path, without the [default].
