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 JULY 17, 2023

Applies to:

Oracle TopLink - Version 10.1.3.3 and later
Information in this document applies to any platform.

Symptoms

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 10.1.3.3 fails with the following message:

Cause

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
Symptoms
 Example
Cause
Solution
 Workaround # 1:
 Workaround # 2:
References

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