Skip to content

Magento 2: Unique Constraint Violation Error on Saving Custom Product Attribute After Database Migration

I’ve recently migrated my Magento 2 project’s database from the production environment to a local setup to perform a version upgrade. Since the migration, whenever I attempt to save any custom product attribute, I encounter the following error:

“Unique constraint violation found”

enter image description here