- Issue created by @claudiu.cristea
- last update
over 1 year ago 12 pass, 2 fail
This might be a duplicate of 🐛 Don't add translation, if exist Postponed or #2947197: Import of translated paragraph entities fails silently → other similar issues but I couldn't find enough details there to make sure.
When I'm importing a node with translations which has paragraph fields also translated, the process crashes with:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'ff25eaa7-1d43-4a9a-9bf0-176855d78646' for key 'paragraph_field__uuid__value': INSERT INTO "paragraphs_item" ("revision_id", "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] => paragraph_type
[:db_insert_placeholder_2] => ff25eaa7-1d43-4a9a-9bf0-176855d78646
[:db_insert_placeholder_3] => en
)
My case is about paragraphs as referred entities but I have a feeling that it might happen to other referred translated entities too.
See the "test only" version of MR: #2 🐛 Import of node with translated paragraphs fails Active
Fix it.
None.
None.
None.
A correct structure of the normalized entity.
Active
2.0
Code