Skip to content

Errore su un cron job

Good morning. I have a CRON stuck because it fails to run due to this error.
How can I avoid it and where should I intervene?

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (H****_mag2new.catalog_product_entity_media_gallery_value_video, CONSTRAINT FK_6FDF205946906B0E653E60AA769899F8 FOREIGN KEY (value_id) REFERENCES catalog_product_entity_media_gallery ), query was: DELETE FROM catalog_product_entity_media_gallery WHERE (value_id = ‘1913671126’ )