I found there is issue with row_id
and entity_id
in this catalog_product_entity
. I'm not able to assign product to category, it gives this error:
Something went wrong while saving the category.SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
mydb
.catalog_category_product
, CONSTRAINTCAT_CTGR_PRD_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL
FOREIGN KEY (product_id
) REFERENCESsequence_product
(sequence_value
) ON DELETE CA), query was: INSERT INTOcatalog_category_product
(category_id
,product_id
,position
) VALUES (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?)
Table values in database is: