My Oracle Support Banner

MultiTableInfo Foreign Key Mapping Leads to ORA-02291: integrity constraint violated - parent key not found (Doc ID 554601.1)

Last updated on MAY 25, 2021

Applies to:

Oracle TopLink - Version and later
Information in this document applies to any platform.
***Checked for relevance on 15-Feb-2012***
***Checked for relevance on 27-Oct-2013***


Two tables are mapped with a one-to-many relationship (Primary-Detail), using a MultiTableInfo descriptor.

With the given foreign key mappings, insertion into the tables using Toplink fails with the following message:


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Workaround # 1:
 Workaround # 2:

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.