Receive Unique Constraint Error When Running RM Process ID (Doc ID 334796.1)

Last updated on JULY 31, 2017

Applies to:

Oracle Risk Manager - Version 4.5.39 to 4.5.41
Information in this document applies to any platform.
Oracle Financial Services Applications (OFSA)
Note: All OFSA 4.5 products have reached sustaining support.

Symptoms

When running RM Process ID against the Commercial Loan instrument table, the following error message is seen in the Server Status screen:

Internal Error

The following two error messages are seen in the ofs.xxxx file:
Oracle Error: ORA-00001: unique constraint (ADMINISTRATOR.RESULT_MASTER_UK) violated

Driver Function: drv_oci::Execute()

SQL Statement: insert into ofsa_result_master (
result_sys_id,ORG_UNIT_ID,GL_ACCOUNT_ID,COMMON_COA_ID,TP_COA,RM_COA,iso_currency_cd,scenario_num,st
rt_date_index,result_type_cd,financial_rollup,cur_par_bal,cur_net_par_bal,cur_defer_bal_c,cur_net_r
te_w,cur_transfer_rate,cur_warm,cur_intr_rec_accr,new_gross_balance,new_net_balance,market_value,du
ation,convexity) values ( :result_sys_id, :ORG_UNIT_ID, :GL_ACCOUNT_ID, :COMMON_COA_ID, :TP_COA,
:RM_COA, :iso_currency_cd, :scenario_num, :start_date_index, :result_type_cd, :financial_rollup,
:cur_par_bal, :cur_net_par_bal, :cur_defer_bal_c, :cur_net_rate_w, :cur_transfer_rate, :cur_warm,
:cur_intr_rec_accr, :new_gross_balance, :new_net_balance, :market_value, :duration, :convexity )
Error(Oracle Financial Services Application error) (203055) Error
Bound Parameters:
:result_sys_id = 103217
:ORG_UNIT_ID = 0
:GL_ACCOUNT_ID = 0
:COMMON_COA_ID = 1010101
:TP_COA = 0
:RM_COA = 200045
:iso_currency_cd = INR
:scenario_num = 1
:start_date_index = 0
:result_type_cd = 0
:financial_rollup = 100
:cur_par_bal = 387500002
:cur_net_par_bal = 387500002
:cur_defer_bal_c = 0
:cur_net_rate_w = 41437500.25
:cur_transfer_rate = 0
:cur_warm = 2190034231.16127
:cur_intr_rec_accr = 0
:new_gross_balance = 0
:new_net_balance = 0
:market_value = 0
:duration = 0
:convexity = 0 SQL statement.
Error(Oracle Financial Services Application error) (203055) Error Executing SQL statement.
Error(Oracle Financial Services Application error) (203105) Oracle drv_oci error:

OCI Function: [4] - oexec(), oexn()
SQL Function: [34] - PL/SQL EXECUTE
Oracle Error: ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
ORA-06512: at "ADMINISTRATOR.OFSA_DBA", line 1293
ORA-06512: at "ADMINISTRATOR.OFSA_DBA", line 2170
ORA-06512: at "ADMINISTRATOR.OFSA_SQL", line 384
ORA-06512: at line 1

Driver Function: drv_oci::Execute()

SQL Statement: declare begin
ofsa_sql.clone_all_indexes('ADMINISTRATOR','RES_DTL_103217','OFSA_IDT_RESULT_DETAIL','103217'); end;
MB(0 : affected.: Fail) declare begin
ofsa_sql.clone_all_indexes('ADMINISTRATOR','RES_DTL_103217','OFSA_IDT_RESULT_DETAIL','103217'); end;

The following error message is found in the debug log:

ORA-01452: cannot
CREATE UNIQUE INDEX; duplicate keys found ORA- 06512: at
"ADMINISTRATOR.OFSA_DBA", line 1293 ORA- 06512: at
"ADMINISTRATOR.OFSA_DBA", line 2170 ORA- 06512: at
"ADMINISTRATOR.OFSA_SQL", line 384 ORA- 06512: at line 1 Driver
Function: drv_oci::Execute() SQL Statement: declare begin
ofsa_sql.clone_all_indexes('ADMINISTRATOR', 'RES_DTL_103217',
'OFSA_IDT_RESULT_DETAIL', '103217'); end;  

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