My Oracle Support Banner

Encounter Toplink-7197 - Null Primary Key In Unit Of Work Clone In TopLink 11g (Doc ID 1490385.1)

Last updated on OCTOBER 21, 2022

Applies to:

Oracle TopLink - Version to [Release Oracle11g]
Information in this document applies to any platform.


You upgraded Toplink application from 9.0.4 to and changed the old deprecated/unavailable APIs to new APIs as per Toplink 11g documentation. "Null primary key" error is encountered when User created a primary entity using BPMasterEntitybase with new child objects (POJO entity). Toplink considers this child object as an existing object and throws exception.

Null PK error is intermitternt.

This error appears only when the cache synchronization / coordination is enabled and NOT when the synchronization is turned off.

Error is as below:

Exception [TOPLINK-7197] (Oracle TopLink - 11g Release 1 ( (Build 110305)): oracle.toplink.exceptions.ValidationException
Exception Description: Null primary key encountered in unit of work clone [].
at oracle.toplink.exceptions.ValidationException.nullPrimaryKeyInUnitOfWorkClone(
at oracle.toplink.descriptors.changetracking.DeferredChangeDetectionPolicy.calculateChanges(
at oracle.toplink.internal.sessions.UnitOfWorkImpl.calculateChanges(
at oracle.toplink.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(
at oracle.toplink.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(
at oracle.toplink.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(
. . .


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

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