HomeDB2DB2 Error Code – -532 the relationship constraint name restricts the deletion of row with rid x’rid number’

DB2 Error Code – -532 the relationship constraint name restricts the deletion of row with rid x’rid number’

In this post, you’ll learn about the error message -532 the relationship constraint name restricts the deletion of row with rid x’rid number’ in the IBM DB2 database , the reason why it occurs along with the solution to fix it

IBM DB2 Error Message

-532 the relationship constraint name restricts the deletion of row with rid x’rid number’

Reason for the Error

A DELETE operation attempted to delete a specified parent row in the object table and all related descendent rows in the descendent tables.� However, a delete rule of RESTRICT was specified for one or more descendent tables.A row of the table cannot be deleted because it has a dependent in a relationship with a delete rule of RESTRICT or the deletion cascades to a row which is a dependent in a relationship with a delete rule of RESTRICT.

Solution

Change the program to DELETE CHILD table row before DELETE of row on PARENT table.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error message -952 processing was interrupted by a cancel request from a client...
  • DB2
  • November 21, 2022
In this post, you’ll learn about the error message -927 the langrage interface was called when the connecting environment was...
  • DB2
  • November 21, 2022
In this post, you’ll learn about the error message -926 rollback not valid in ims/vs or cics environment in the...
  • DB2
  • November 21, 2022