Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated

Created on 3 September 2024, 4 months ago

Problem/Motivation

When the translated text from XTM is length greater than field limit, Drupal database layer throws exception

Message Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'title' at row 2: INSERT INTO "node_field_data" ("nid", "vid", "type", "langcode", "status", "uid", "title", "created", "changed", "promote", "sticky", "default_langcode",

Steps to reproduce

1. Translate an entity via XTM provider
2. On XTM, fill the translated text greater than field limit
3. Fetch the translation in Drupal.
4. Error will be thrown as text size is higher than the database column limit

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024