# Perspective Tag History Binding to Internal Historian

**URL:** <https://forum.inductiveautomation.com/t/perspective-tag-history-binding-to-internal-historian/37806>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 17, 2020, 1:46pm UTC](https://forum.inductiveautomation.com/t/perspective-tag-history-binding-to-internal-historian/37806 "2020-08-17T13:46:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [August 17, 2020, 1:46pm UTC](https://forum.inductiveautomation.com/t/perspective-tag-history-binding-to-internal-historian/37806/1 "2020-08-17T13:46:09Z")

</div>

Hi,

I have a tag history provider set using the Internal Historian, and it seems to be logging:  
Test code:

```auto
def browse(path=''):
    for result in system.tag.browseHistoricalTags(path).getResults():
        print result.getPath()
        if result.hasChildren():
            browse(result.getPath())
browse()

endTime = system.date.now()
startTime = system.date.addSeconds(endTime, -30)

data = system.dataset.toPyDataSet(system.tag.queryTagHistory(	paths=['histprov:Historian:/drv:default:/tag:testhistory'], \
																startDate=startTime, \
																endDate=endTime, \
																returnSize=10, \
																aggregationMode="Average", \
																returnFormat='Wide'))

for row in data:
	print 'dt=' + str(row[0]) + ', value=' + str(row[1]) 

```

Results:

```auto
histprov:Historian
histprov:Historian:/drv:default
histprov:Historian:/drv:default:/tag:testhistory
dt=Mon Aug 17 15:22:51 CAT 2020, value=52.2655885295
dt=Mon Aug 17 15:22:54 CAT 2020, value=55.2635878626
dt=Mon Aug 17 15:22:57 CAT 2020, value=53.0305101701
dt=Mon Aug 17 15:23:00 CAT 2020, value=1.26125375125
dt=Mon Aug 17 15:23:03 CAT 2020, value=4.26025341781
...

```

I cannot seem to get the Tag History binding to return any values:

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

The above gives the following issue in tags.history.InternalHistorian.Query  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/f/2f445bf9f253b198bb778cbda3b9f4f68ea3ed37.png)  
Is there a different tag path syntax one must use?

Thanks,  
Deon

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [October 14, 2022, 4:35pm UTC](https://forum.inductiveautomation.com/t/perspective-tag-history-binding-to-internal-historian/37806/2 "2022-10-14T16:35:06Z")

</div>

Did you ever figure this out? I am getting no data coming in through my edge historian

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [October 18, 2022, 11:36am UTC](https://forum.inductiveautomation.com/t/perspective-tag-history-binding-to-internal-historian/37806/3 "2022-10-18T11:36:24Z")

</div>

My historical tag path was just wrong, just never updated this thread.

This was made a lot easier in 8.1.13 and up. You can now browse historical paths and it should work.

[Tag History Bindings in Perspective - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)](https://docs.inductiveautomation.com/display/DOC81/Tag+History+Bindings+in+Perspective)

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [October 18, 2022, 4:45pm UTC](https://forum.inductiveautomation.com/t/perspective-tag-history-binding-to-internal-historian/37806/4 "2022-10-18T16:45:14Z")

</div>

Ah nice! Thanks, I was curious because I have to do something similar
