This is my first time using Oracle.
I inserted something into the db manually:
insert into ATTR_TYPE_VALUE (ATTR_TYPE_ID, VALID_VALUE, CREATED_BY)
(select ATTR_TYPE_ID, 'Ad', 2 from ATTR_TYPE where VALUE = 'ind')
And I got the following error:
ERROR at line 1: ORA-02291: integrity constraint
(LO.ATTR_TYPE_VALUE_FK02) violated – parent key not found
Here is what I found upon research:
For an insert statement, this ORA-02291 error is common when you are trying to insert a child without a matching parent, as defined by a foreign key constraint. In that case, you need to add the parent row to the table and then re-insert your child table row.
Does this mean that the VALUE='ind' does not exist in the ATTR_TYPE table?
What columns is
ATTR_TYPE_VALUE_FK02defined on and what tables and columns are you referencing?