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).

Command icon 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

leo liao created an issue. See original summary.

leo liao’s picture

Issue summary: View changes
leo liao’s picture

StatusFileSize
new648 bytes
venkatadapa’s picture

StatusFileSize
new648 bytes

Attached patch for version ^1.4

himanshu_jhaloya made their first commit to this issue’s fork.

lokoenig’s picture

Just confirming that @venkatadapa's patch adds the appropriate sanity checking and works fine.

jamesoakley’s picture

Priority: Normal » Major
Status: Active » Reviewed & tested by the community

Marking as major, because it stops the module from working.
Marking as RTBC because I, too, can confirm the patch fixes the problem

ccjjmartin’s picture

Can 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

joseph.olstad made their first commit to this issue’s fork.

joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

yogeshmpawar’s picture

Hi @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.

joseph.olstad’s picture