Service Agreement Business Object Child Objects Are Not Updated Causing Unique Constraint Errors (Doc ID 1265945.1)

Last updated on OCTOBER 18, 2016

Applies to:

Oracle Utilities Framework - Version: 2.2.0 to 2.2.0 - Release: 2.2 to 2.2
Information in this document applies to any platform.

Symptoms

When attempting to use a CUSTOM Business Object (for the SA Maintenance Object), via a script, to update any field of a SA that contains a Contract Rider record an error similar to the following occurs:


DBARTLET - 351158-201-1 19:15:15,363 [Parent Reader:Thread-19] ERROR (support.cobol.DBLocalCobolSQLProcessBackend) SQL Error encountered sqlCode=1, sqlState=23000 (ORA-00001: unique constraint (CISADM.SYS_C0010823) violated
) with SQL:
'INSERT INTO CI_SA_CONTERM (SA_ID, CONTERM_TYPE_FLG, BF_CD, START_DT, END_DT, PCT_EXEMPT, TAX_CERT, TAX_EX_TYPE_CD, TOU_GRP_CD, VAL, VERSION) VALUES (UPPER(?), UPPER(?), UPPER(?), ?, ? , ?, ?, ?, UPPER(?), ?, ?)' with bind parameters:
Parameter 1 (Char)'1728716044'
Parameter 2 (Char)'R '
Parameter 3 (Char)'ACTR '
Parameter 4 (Date)'2010-01-02'
Parameter 5 (Date)'2010-02-05'
Parameter 6 (Decimal)'0.0000'
Parameter 7 (String)' '
Parameter 8 (Char)' '
Parameter 9 (Char)' '
Parameter 10 (Decimal)'0E-7'
Parameter 11 (Integer)'1'
with last row return values:

java.sql.SQLException: ORA-00001: unique constraint (CISADM.SYS_C0010823) violated

at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1061)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:105)
at com.splwg.base.support.cobol.DBLocalCobolSQLProcessBackend.executeSQLUpdate(DBLocalCobolSQLProcessBackend.java:925)
at com.splwg.base.support.cobol.DBLocalCobolSQLProcessBackend.doSQLInsert(DBLocalCobolSQLProcessBackend.java:595)
at com.splwg.base.support.cobol.host.command.SimpleCobolSQLCommand.invoke(SimpleCobolSQLCommand.java:143)
at com.splwg.base.support.cobol.host.PerformCommandExecuter.invoke(PerformCommandExecuter.java:68)
at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketReader.readRequestExecuteAndRespond(OptimizedRemoteExecuterSkel.java:157)
at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketReader.run(OptimizedRemoteExecuterSkel.java:91)
at com.splwg.base.support.cobol.host.SocketThreadPool$WrappingParentRunnable.run(SocketThreadPool.java:204)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)



Cause

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