Integrity constraint violation - 'langcode' cannot be null error thrown when editing Paragraph reference field

Created on 13 March 2023, almost 2 years ago

Problem/Motivation

I need to bulk update an Entity reference revisions field in a content type, which references a list of Paragraph types. When using the usual VBO flow to update values and submitting, I receive this error:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=101&op=do_nojs&op=do
StatusText: error
ResponseText: The website encountered an unexpected error. Please try again later.Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'langcode' cannot be null: INSERT INTO "paragraphs_item" ("revision_id", "type", "uuid", "langcode") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array
(
[:db_insert_placeholder_0] => 
[:db_insert_placeholder_1] => more_news
[:db_insert_placeholder_2] => e9d5db53-43dc-4c77-87d4-196bf581ab39
[:db_insert_placeholder_3] => 
)
in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Steps to reproduce

Install Paragraphs, create a paragraph type, edit an existing content type, add a reference field to the paragraph type, create some content, attempt a bulk edit of the content that updates the paragraph reference field.

🐛 Bug report
Status

Active

Version

2.8

Component

Code

Created by

🇦🇺Australia jaydee1818 Melbourne

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

Comments & Activities

Production build 0.71.5 2024