Content
You are here:
[solved] Error adding work package
Added by jason southwell over 10 years ago
One of my users received an error page after saving a new work package she was adding. She received an email stating that it was created but it is nowhere to be found in the system.
Looking through the logs, the error reported seems to be:
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'
The only field that had any significant length was the description of the work package.
Any ideas what might have gone wrong? I told her to reenter the task but I’d like to track down the core of the problem.
Replies (4)
This just happened to me as well. I think the problem is when entering long text into a custom memo field. It is a very irritating bug since you basically lose the last 30 minutes of text that you were typing into a work package.
I’m going to open a bug package.
This should be solved in OP 3.0.1
I upgraded to dev this week and confirmed the fix. Thanks.
Thanks for letting us know.