My Oracle Support Banner

System Error - DuplicateKeyException For AsPolicyRoleHistory (Doc ID 2824410.1)

Last updated on NOVEMBER 29, 2021

Applies to:

Oracle Insurance Policy Administration J2EE - Version 11.3.1.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.3.1.0 version, General

The following error appears whenever 1 Activity attempts to create 2 new Roles on a Policy.
Instead of the base code correctly inserting one unique row into AsPolicyRoleHistory for each new Role being added to the Policy,
the base code is attempting to insert 2 identical rows into AsPolicyRoleHistory.
A system error occurs because the Database is setup to ensure that duplicate rows are not created in this table.

ERROR
-----------------------
Caused by: com.adminserver.utl.exception.AsExceptionUtl: Database error occurred while performing operation Save.
at com.adminserver.dal.jdbc.JdbcDataAccessHelper.executeSqlStatements(JdbcDataAccessHelper.java:163)
at com.adminserver.pas.bll.DataChangesHelper.persistSqlStatementList(DataChangesHelper.java:641)
... 96 more
Caused by: com.ibm.websphere.ce.cm.DuplicateKeyException: DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, SQLERRMC=1;MADMS01D.ASPOLICYROLEHISTORY, DRIVER=4.24.92



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
Cause
Solution
References


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