In example csv langcodetitle instead of langcode

Created on 2 May 2023, over 1 year ago
Updated 14 June 2023, over 1 year ago

Problem/Motivation

The header row of the import file consists of a field langcodetitle, which is a non-existing field. It should be langcode
With this wrong fieldname I got the following error:

 SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'langcode' cannot be null: INSERT INTO "node" ("vid", "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] => weblinks [:db_insert_placeholder_2] => 7494b79b-adde-4ca7-aecf-9022705dac09 [:db_insert_placeholder_3] => ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Steps to reproduce

Go to admin/config/content/contentimport
Select correct contenttype and select "Create New Content"
Then I got "Click here to download Sample CSV"
I click on that and when I open this file I got:

title, langcodetitle, comment, field_url

Proposed resolution

The download Sample CSV should consists of

title, langcode, comment, field_url

Remaining tasks

Arrange that instead of langcodetitle, langcode is exported in Sample CSV.

Thanks in advance,

🐛 Bug report
Status

Active

Version

9.0

Component

Code

Created by

🇳🇱Netherlands Summit

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

Comments & Activities

Production build 0.71.5 2024