HPE NonStop SQL/MX Error – 1143 Validation for constraint constraint-name failed; incompatible data exists in referencing base table referencing-table-name and referenced base table referenced-table-name. To display the data that violates the constraint, please use the following DML statement: statement-text.

In this blog post, let’s learn about the error message “1143 Validation for constraint constraint-name failed; incompatible data exists in referencing base table referencing-table-name and referenced base table referenced-table-name. To display the data that violates the constraint, please use the following DML statement: statement-text.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

1143 Validation for constraint constraint-name failed; incompatible data exists in referencing base table referencing-table-name and referenced base table referenced-table-name. To display the data that violates the constraint, please use the following DML statement: statement-text.

Reason for the Error

You attempted to add a referential integrity constraint that is violated by rows already in the table.

Solution

Run the query statement-text to see the rows that violate the referential constraint. Either change those rows or change the referential constraint definition and resubmit

Leave A Reply

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

You May Also Like

In this blog post, let’s learn about the error message “1104 Default value string is too long for column column-name.”...
  • Data
  • December 3, 2024
In this blog post, let’s learn about the error message “3165 The precision or exponent value specified in value was...
  • Data
  • December 3, 2024
In this blog post, let’s learn about the error message “2051 Either control optionoption name or value ‘value’is not valid.”...
  • Data
  • December 3, 2024