# Store and Forward ERROR: value too long for type character varying(255)

**URL:** <https://forum.inductiveautomation.com/t/store-and-forward-error-value-too-long-for-type-character-varying-255/23432>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [March 19, 2019, 7:30am UTC](https://forum.inductiveautomation.com/t/store-and-forward-error-value-too-long-for-type-character-varying-255/23432 "2019-03-19T07:30:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [March 19, 2019, 7:30am UTC](https://forum.inductiveautomation.com/t/store-and-forward-error-value-too-long-for-type-character-varying-255/23432/1 "2019-03-19T07:30:28Z")

</div>

Every once in a while I get this “ERROR: value too long for type character varying(255)” in the gateway log.  
The interesting thing is that I’ve changed all the fields in the ‘alarm\_events’ and ‘alarm\_events\_data’ from varchar(255) to varchar unlimited and error is still coming.  
I have around 1500 alarm tags and none have alarm text/name/label longer than 200 characters.

Edit: Ignition v7.9.10, PostgreSQL 9.6

How to find which alarm is causing that?

 ![storeForwardError1](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/955c2993ac7a5f77f0c32540d0246d92f81bb3e9.png)  
 ![storeForwardError2](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/20da3f9a6ab27d6de723a759c830db01d27b7bb5.png)

EDIT2:  
Turns out that you can find on which table in the DB is this happening.  
You must look in the Postgresql server logs (pg\_log)

 ![storeForwardError3](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3f7a18120309201f290794ba3a2c4681b4aa9098.png)  
Turns out that I didn’t (I thought I was) change ‘propname’ filed type to unlimited in the alarm\_event\_data.

But still… it would be very helpful if there were more info from the Ignition on who/what/where is causing that error…

---

<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:** [March 19, 2019, 4:12pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-error-value-too-long-for-type-character-varying-255/23432/2 "2019-03-19T16:12:37Z")

</div>

> [@zxcslo](#):
>
> But still… it would be very helpful if there were more info from the Ignition on who/what/where is causing that error…

Agreed - unfortunately, due to the asynchronous nature of store and forward, it's _really_ hard to actually do that. From the alarming side, once the insert query has hit store and forward it's considered done - as long as S+F has accepted the data, it's considered to have done it's job. From the store and forward side, there's no real way for us to understand the query at that point (since it could have come from anywhere, and it could be going into any kind of DB, including one we might not even know about), so we just have to give it to the database and hope we get a useful error back.

The best solution, which is on our to-do list, is to better support exporting of different types of quarantine data so you could at least see what we're trying to insert and make necessary adjustments in your table.
