# System.tag.queryTagHistory() doesn't work with Imported Data

**URL:** <https://forum.inductiveautomation.com/t/system-tag-querytaghistory-doesnt-work-with-imported-data/106147>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [May 12, 2025, 3:25pm UTC](https://forum.inductiveautomation.com/t/system-tag-querytaghistory-doesnt-work-with-imported-data/106147 "2025-05-12T15:25:05Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [May 13, 2025, 10:26pm UTC](https://forum.inductiveautomation.com/t/system-tag-querytaghistory-doesnt-work-with-imported-data/106147/13 "2025-05-13T22:26:42Z")

</div>

> [@Slick](#):
>
> would this however fix my issue?

Should, yes.

> [@Slick](#):
>
> Do either of these count as restarts?

No. You have to restart the gateway service or the whole machine.

I probably should have pointed you here:

> [@Tag History Migration Best Practices? Upgrading to new servers!](https://forum.inductiveautomation.com/t/tag-history-migration-best-practices-upgrading-to-new-servers/75766):
>
> In the middle of a shutdown and was wondering if any of you had any tips for migrating to a new database on a separate server than the gateway. My greatest concern is keeping the Tag History intact. Plan is to upgrade from 7.9.10 to 8.1.x. Currently our database (MySQL) is on the primary gateway. We have a lot of tag history that is getting stored to a database/schema called 'ignition' in MySQL. It's fairly straightforward. We've be given the opportunity to have a separate database server …

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-tag-querytaghistory-doesnt-work-with-imported-data/106147)._
