# Unrecognized error type (ActiveRecord::StatementInvalid: PG::ProgramLimitExceeded

**URL:** <https://meta.discourse.org/t/unrecognized-error-type-activerecord-pg-programlimitexceeded/217858>\
**Category:** Bug\
**Created:** [February 11, 2022, 8:53am UTC](https://meta.discourse.org/t/unrecognized-error-type-activerecord-pg-programlimitexceeded/217858 "2022-02-11T08:53:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [February 11, 2022, 6:21pm UTC](https://meta.discourse.org/t/unrecognized-error-type-activerecord-pg-programlimitexceeded/217858/3 "2022-02-11T18:21:54Z")

</div>

That means that an incoming email error message is too large for indexing. We should index on a safe substring of the first 100 characters of the error.

---

_[View the full topic](https://meta.discourse.org/t/unrecognized-error-type-activerecord-pg-programlimitexceeded/217858)._
