- Issue created by @freelock
- πΊπΈUnited States kwiseman
I think I'm experiencing this issue too. We're using IEF to only allow creating new referenced content (hopefully) without duplicates, but when I try to add more than one node simultaneously, I get an integrity constraint violation. Here's the text from my white screen:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4878388b-8fb8-4325-a3ca-6e8e2a73fd04' for key 'node_field__uuid__value': 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] => resource [:db_insert_placeholder_2] => 4878388b-8fb8-4325-a3ca-6e8e2a73fd04 [:db_insert_placeholder_3] => en ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
- π·π΄Romania dragos-dumi
I'm experiencing similar issue with drupal commerce. Adding 2 line items one after the other, the second one inherits some fields and uuid of first and when saving the order, it gives "Integrity constraint violation: 1062 Duplicate entry"
If you add one item, save the order and edit again to add a new one, this does not happen. Indeed seems something related to the form state handing within the ajax for interraction. - πΊπΈUnited States freelock Seattle
Oh interesting, we're using ECA on the affected sites -- we're hitting this issue on at least 4 different sites, and ECA is active on all of them.
- πΊπΈUnited States freelock Seattle
Turns out it's a known issue of ECA - π ECA Form breaks complex IEF widget Active . Leaving this open in case the fix is better handled here in IEF.