postgresql / PostgreSQL
PostgreSQL 22001: string_data_right_truncation
A string is longer than the column allows.
Visible symptoms
- SQLSTATE 22001.
- Condition name: string_data_right_truncation.
Safe verification and recovery
Shorten the value
Trim the value or validate its length before saving.
Review the column size
If longer values are valid, have the column definition reviewed.
Matching evidence and limitations
Reported error signals
Matches the documented error signal; it identifies the documented case, not the exact root cause of your request.
The local analyzer never executes suggested commands or treats a possible match as certainty.