# Error storing tag history in Postgres database

**URL:** <https://forum.inductiveautomation.com/t/error-storing-tag-history-in-postgres-database/81015>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 26, 2023, 8:42am UTC](https://forum.inductiveautomation.com/t/error-storing-tag-history-in-postgres-database/81015 "2023-10-26T08:42:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrii\_Ushchapovskyi](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Andrii\_Ushchapovskyi](https://forum.inductiveautomation.com/u/Andrii_Ushchapovskyi)\
**Post date:** [October 26, 2023, 8:42am UTC](https://forum.inductiveautomation.com/t/error-storing-tag-history-in-postgres-database/81015/1 "2023-10-26T08:42:20Z")

</div>

I am using Ignition 8.1.25 version and PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1) on x86\_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

I want to use database history provider but there are several errors in logs:

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

and

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/543acaab4e249bdeae7fabc74d41c621f539fb84.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 26, 2023, 3:50pm UTC](https://forum.inductiveautomation.com/t/error-storing-tag-history-in-postgres-database/81015/2 "2023-10-26T15:50:10Z")

</div>

You should contact support. A NullPointException; the actual inner cause of the problem here, is always a programming bug on our part.

---

<div class="post-metadata">

**Author:** ![Andrii\_Ushchapovskyi](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Andrii\_Ushchapovskyi](https://forum.inductiveautomation.com/u/Andrii_Ushchapovskyi)\
**Post date:** [November 2, 2023, 8:15am UTC](https://forum.inductiveautomation.com/t/error-storing-tag-history-in-postgres-database/81015/3 "2023-11-02T08:15:42Z")

</div>

The reason was not in Postgres database. The reason was in the name of realtime tag provider. The tag provider was called like "Realtime. Tag. Provider". There was a full stops and spaces in the name. When I change name to the "Realtime\_Tag\_Provider" the problem was solved. And now values of the tags is storing in my database.
