Forms 6i - integrity constraint error [message #260557] |
Mon, 20 August 2007 05:20 |
ora_dev
Messages: 27 Registered: December 2006
|
Junior Member |
|
|
Hi
I am using forms 6i. I have two tables in the form with a master (STOCK_HEADER) detail (STOCK_DETAIL) relationship. There is a foreign key relationship on these tables with column stock_id. I display the records from these two tables and the user selects records he wants.
I created two other temporary tables T_STOCK_HEADER and T_STOCK_DETAILS with NO foreign key relationship.
I press button and it runs two procedures. One inserts a header record into T_STOCK_HEADER from STOCK_HEADER with a new stock_id and the other procedure inserts records into T_STOCK_DETAILS from STOCK_DETAIL with the same new stock_id.
I now get an ORA-02291 integrity constraint error - parent key not found. There are no foreign key constraints between these two temporary tables. This constraint applies to the two original tables ie. STOCK_HEADER and STOCK_DETAIL. Why am I getting this error on the temporary tables.
Thanks
|
|
|
|
|
|