Constraint <str> is not defined in database or schema Explanation: The specified constraint does not exist in the current database or schema. User Action: Declare the correct database or set the correct schema. Check the constraint name for correct spelling. Check the constraint definition to make sure you did not specify a term where the constraint name was expected.