The value corresponds to the tid. Should this be the uid value? or just not enable the tid or allow it to be overwritten with the next available.
Or if I have taxonomy_name module enabled use that for tid instead of the numerical one.
[:db_insert_placeholder_0] => 2
Next Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]:
Integrity constraint violation: 1062 Duplicate entry '2' for key 'PRIMARY': INSERT
INTO {taxonomy_term_data} (tid, vid, uuid, langcode) VALUES
(:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2,
:db_insert_placeholder_3); Array
(
[:db_insert_placeholder_0] => 2
[:db_insert_placeholder_1] => topic_types
[:db_insert_placeholder_2] => 2879b3e2-4e60-49ec-8ef1-beff2fad2567
[:db_insert_placeholder_3] => en
)
in
drupal-8.5.1/html/core/lib/Drupal/Core/Database/Connection.php:683
Comments
Comment #2
socialnicheguru commentedhttps://www.drupal.org/project/taxonomy_machine_name
Comment #3
socialnicheguru commentedComment #4
larowlanWhat is in your .json files
Comment #5
larowlanLooks like #2698425: Do not re-import existing entities resolved your issue
Comment #6
socialnicheguru commentedyes it did.