Integrity constraint violation: Duplicate entry paragraph_field__uuid__value

Created on 5 June 2023, over 1 year ago
Updated 21 August 2024, 4 months ago

Problem

Got error on saving content layout when selecting layout created in layout library having block and attached paragraph

Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '3d922a1b-b23d-4243-a529-a7c6654e0e8a' 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] => liveblog_tickaroo [:db_insert_placeholder_2] => 3d922a1b-b23d-4243-a529-a7c6654e0e8a [:db_insert_placeholder_3] => en ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save()

Steps to reproduce

  1. Create custom block type and add reference paragraph field
  2. Create Layout in layout library
  3. Add custom block and attach paragraph to it and save layout
  4. Create content and select layout
  5. Add content in paragrph of block
  6. Save layout gives error.
🐛 Bug report
Status

Active

Component

Code

Created by

🇮🇳India kamalrajsahu21

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024