Delphi / Object Pascal · Database exception

BDE Error 9734 ($2606) - Master Has Detail Records

What does BDE Error 9734 ($2606) - Master Has Detail Records mean in Delphi / Object Pascal?

Raised when an application tries to delete or modify a master record's key while detail records still reference it through a referential-integrity link, and cascading isn't configured to allow it.

BDE Error 9734 ($2606) - Master Has Detail RecordsDelphi (VCL) · Delphi (BDE)

Condition

Raised when an application tries to delete or modify a master record's key while detail records still reference it through a referential-integrity link, and cascading isn't configured to allow it.

Fix

Delete or reassign the dependent detail records first, or configure the referential integrity link for cascading delete/update if that behavior is actually intended for this relationship.

Related database exception