- Issue created by @Summit
- 🇮🇳India Priya gupta
I have verified and we are getting langcode on download the csv and when import the data, it imports successfully.
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).
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
The download Sample CSV should consists of
title, langcode, comment, field_url
Arrange that instead of langcodetitle, langcode is exported in Sample CSV.
Thanks in advance,
Active
9.0
Code
I have verified and we are getting langcode on download the csv and when import the data, it imports successfully.