When I tries to add the simple product to configurable product I am getting the below error
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (db_mydb.catalog_product_super_link, CONSTRAINT FK_CAT_PRD_SPR_LNK_PRD_ID_CAT_PRD_ENTT_ENTT_ID FOREIGN KEY (product_id) REFERENCES catalog_product_entity (entity_id) ON DELE)
But this was working perfectly before. Anyone has idea, What could be the reason.?
Much appreciated your help.