# How to find which tag is triggering Historical Sink Does Not Exist error in gateway

**URL:** <https://forum.inductiveautomation.com/t/how-to-find-which-tag-is-triggering-historical-sink-does-not-exist-error-in-gateway/48714>\
**Category:** Ignition\
**Created:** [July 12, 2021, 6:51am UTC](https://forum.inductiveautomation.com/t/how-to-find-which-tag-is-triggering-historical-sink-does-not-exist-error-in-gateway/48714 "2021-07-12T06:51:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [July 12, 2021, 6:51am UTC](https://forum.inductiveautomation.com/t/how-to-find-which-tag-is-triggering-historical-sink-does-not-exist-error-in-gateway/48714/1 "2021-07-12T06:51:10Z")

</div>

I have taken some resources from another project and I have 1 tag that is filling the logs up with errors because it is referring to the old project database, however I can’t see which is causing the issue. Is there any loggers I can change the level on and filter to find the offending tag?

---

<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:** [July 12, 2021, 11:55am UTC](https://forum.inductiveautomation.com/t/how-to-find-which-tag-is-triggering-historical-sink-does-not-exist-error-in-gateway/48714/2 "2021-07-12T11:55:15Z")

</div>

I would export all the tags and search the JSON for:

```auto
"historyProvider": "<Name of Sink that doesn't exist>",

```

---

<div class="post-metadata">

**Author:** ![michael2](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@michael2](https://forum.inductiveautomation.com/u/michael2)\
**Post date:** [July 12, 2021, 10:09pm UTC](https://forum.inductiveautomation.com/t/how-to-find-which-tag-is-triggering-historical-sink-does-not-exist-error-in-gateway/48714/3 "2021-07-12T22:09:09Z")

</div>

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

@deon.korb I tried that but wasn’t able to find anything in the tags.

I set the history logger to trace level and I’m only getting this from the offending DB, It’s like it’s trying to store a non existent tag? What else could cause this?

Edit: I restarted the gateway and the error has gone, but I’m still not sure why it happened.
