Problem/Motivation
When I import a CSV file with Taxonomy Reference fields that are blank I get the following error.
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null: INSERT INTO "taxonomy_term_field_data" ("tid", "revision_id", "vid", "langcode", "status", "name", "description__value", "description__format", "weight", "changed", "default_langcode", "revision_translation_affected")
The module does not seem to handle empty fields well in this regard.
Steps to reproduce
Perform an import with a CSV file that has a column for a taxonomy reference field that both has and doesn't have values in it.
Proposed resolution
Add empty/null checking for reference fields.
Issue fork contentimport-3458536
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments