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

SocialNicheGuru created an issue. See original summary.

socialnicheguru’s picture

Title: Taxonomy terms causes duplicate entity errors » Taxonomy terms causes duplicate entity errors - possible solution integrate with taxonmy_machine_name
larowlan’s picture

Status: Active » Postponed (maintainer needs more info)

What is in your .json files

larowlan’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Looks like #2698425: Do not re-import existing entities resolved your issue

socialnicheguru’s picture

yes it did.