← All errors

SQLCODE -404

SQL0404 Value too long for column or variable

IBM message text
Value for column or variable &1 too long.
SQLCODE
-404
SQLSTATE
22001

Most common cause

In INSERT, UPDATE, MERGE or SET a string is longer than the column or variable. The message gives both lengths.

Other causes

  • A CCSID conversion (for example to UTF-8) that increases the bytes needed.

How to fix it

Widen the column, or truncate deliberately with LEFT or SUBSTR.

Related errors

Text and codes from IBM documentation for 7.6. Checked on .