After modifying the information after exporting, the following error occurs when importing and restoring data:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '187c8786-e66b-41a5-b6b2-f60519ff8567' for key 'menu_link_content_field__uuid__value': INSERT INTO "menu_link_content" ("revision_id", "bundle", "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] => menu_link_content [:db_insert_placeholder_2] => 187c8786-e66b-41a5-b6b2-f60519ff8567 [:db_insert_placeholder_3] => ja ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | menu-export-sql-error-3375171-4.patch | 648 bytes | venkatadapa |
Issue fork menu_export-3375171
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
Comment #2
leo liao commentedComment #3
leo liao commentedComment #4
venkatadapa commentedAttached patch for version ^1.4
Comment #7
lokoenig commentedJust confirming that @venkatadapa's patch adds the appropriate sanity checking and works fine.
Comment #8
jamesoakleyMarking as major, because it stops the module from working.
Marking as RTBC because I, too, can confirm the patch fixes the problem
Comment #9
ccjjmartin commentedCan confirm this patch fixes a critical part of functionality for this module (just installed it and out of the box this module did not have the expected behavior without this patch)
+1 RTBC
Comment #12
joseph.olstadComment #15
yogeshmpawarHi @joseph.olstad, I think this patch file doesn't belongs to the source code - https://git.drupalcode.org/project/menu_export/-/merge_requests/13/diffs... & https://git.drupalcode.org/project/menu_export/-/blob/8.x-1.x/menu-expor...
I think we need to remove it from codebase.
Comment #16
joseph.olstadhttps://www.drupal.org/project/menu_export/releases/8.x-1.7