How To Avoid JBO-25030 When Inserting New Records in a View Object With Multiple Entity Object Usages

(Doc ID 561151.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version to [Release Oracle10g to 12c]
Information in this document applies to any platform.
*** Checked for relevance on 09-SEP-2013 ***


Suppose a Master-Detail View Object with multiple Entity Object usages, say Dept and Emp, both Updatable.
The Entity Objects are linked with a Composition Association  (with Cascade Delete/Update).
Updating and deleting existing data works fine, but creating new rows fails with the following errors:

oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity: detail entity Emp, row key null.
    at oracle.jbo.server.EntityImpl.internalCreate(
    at oracle.jbo.server.EntityImpl.create(
    at oracle.jbo.server.EntityImpl.callCreate(
    at oracle.jbo.server.ViewRowStorage.create(
    at oracle.jbo.server.ViewRowImpl.create(
    at oracle.jbo.server.ViewRowImpl.callCreate(
    at oracle.jbo.server.ViewObjectImpl.createInstance(
    at oracle.jbo.server.QueryCollection.createRowWithEntities(
    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(
    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(
    at oracle.jbo.server.ViewRowSetImpl.createRow(
    at oracle.jbo.server.ViewObjectImpl.createRow(

How to avoid this error ?


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms