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 (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?)
Getting this error when trying to add any product to category.
I have already try with re-indexing, url regenerate, but still not working.