String data, right truncated: 1406 Data too long for column 'label'

Created on 4 January 2023, almost 2 years ago
Updated 19 January 2023, almost 2 years ago

Problem/Motivation

Seeing the following exception when a danse log event produces a label that's too long:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'label' at row 1: INSERT INTO "danse_event" ("uuid", "plugin", "topic", "reference", "label", "payload", "push", "force", "silent", "processed", "created", "changed", "uid") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12); Array ( [:db_insert_placeholder_0] => b2863aae-77a4-4250-bb22-1975f03d17d8 [:db_insert_placeholder_1] => log [:db_insert_placeholder_2] => eca [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => A different user is specified in the global settings to be switched to when executing ECA models, but the user does not exist. Falling back to default behavior, which is execution using the current user. You need to make sure that the specified user exists. [:db_insert_placeholder_5] => {"level":3,"message":"A different user is specified in the global settings to be switched to when executing ECA models, but the user does not exist. Falling back to default behavior, which is execution using the current user. You need to make sure that the specified user exists.","context":{"channel":"eca","link":"","uid":"1","request_uri":"https:\/\/bitsol.dev.jurgenhaas.de\/en\/admin\/config\/workflow\/eca\/process_r0u05jw\/edit","referer":"https:\/\/bitsol.dev.jurgenhaas.de\/en\/admin\/config\/workflow\/eca\/add\/bpmn-io","ip":"192.168.3.44","timestamp":1672852808,"placeholders":[],"backtrace":[""]},"class":"Drupal\\danse_log\\Payload"} [:db_insert_placeholder_6] => 1 [:db_insert_placeholder_7] => 1 [:db_insert_placeholder_8] => 0 [:db_insert_placeholder_9] => 0 [:db_insert_placeholder_10] => 1672852808 [:db_insert_placeholder_11] => 1672852808 [:db_insert_placeholder_12] => 1 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->doSaveFieldItems() (line 946 of /var/www/html/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024