# Insert tag historian points on a remote tag provider

**URL:** <https://forum.inductiveautomation.com/t/insert-tag-historian-points-on-a-remote-tag-provider/82481>\
**Category:** Ignition\
**Created:** [November 29, 2023, 3:12pm UTC](https://forum.inductiveautomation.com/t/insert-tag-historian-points-on-a-remote-tag-provider/82481 "2023-11-29T15:12:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eskil\_Holum](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@Eskil\_Holum](https://forum.inductiveautomation.com/u/Eskil_Holum)\
**Post date:** [November 29, 2023, 3:12pm UTC](https://forum.inductiveautomation.com/t/insert-tag-historian-points-on-a-remote-tag-provider/82481/1 "2023-11-29T15:12:02Z")

</div>

I want to use the system.tag.storeTagHistory to insert some old data we have on some datapoints. This usually works fine but this time the data comes from an edge device as a remote tag provider and what happens when i use the storeTagHistory function is that the historian creates another drv and the data is stored as if it comes from a different tagprovider.

My remote gateway and tagprovider have this combination:  
`edgegw : remotetagprovider`

and i try to use the storeTagHistory function like this:  
`system.tag.storeTagHistory("SomeDB", "remotetagprovider", paths, values, qualities, timestamps)`

but the data gets stored as  
`maingw : remotetagprovider`

Is there any way to ommit this?
