# Bug OP-1178 - Error adding Work Package

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-1178

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 3.0.1 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

When you enter long text into a long text custom field, you get the following exception


> Completed 500 Internal Server Error in 10347.3ms
> 
> ActiveRecord::StatementInvalid (PG::Error: ERROR: value too long for type character varying(255)  
> : INSERT INTO “customizable\_journals” (“custom\_field\_id”, “journal\_id”, “value”) VALUES ($1, $2, $3) RETURNING “id”):  
> lib/plugins/acts\_as\_journalized/lib/redmine/acts/journalized/save\_hooks.rb:71:in \`block in save\_journals’  
> lib/plugins/acts\_as\_journalized/lib/redmine/acts/journalized/save\_hooks.rb:71:in \`each’  
> lib/plugins/acts\_as\_journalized/lib/redmine/acts/journalized/save\_hooks.rb:71:in \`save\_journals’  
> app/controllers/work\_packages\_controller.rb:143:in \`create’

It is especially annoying since the last 30 minutes you spent meticulously filling out a work package is completely destroyed.
