ORA-00001: unique constraint (PK_DIM_LEGAL_ENTITY_HIER) violated Errors Executing Fn_drmDataLoader Hierarchy Loader (Doc ID 2006088.1)

Last updated on NOVEMBER 10, 2016

Applies to:

Oracle Financial Services Analytical Applications Infrastructure - Version 8.0.0 to 8.0.1 [Release 8]
Information in this document applies to any platform.
Oracle Financial Services Analytical Applications Infrastructure (OFSAAI)
Oracle Financial Services Analytical Applications (OFSAA)

Symptoms

On OFSAA 8.0.0, when attempting to execute the fn_drmDataLoader hierarchy loader from staging table, the following error occurs:

ERROR

Error ORA-00001: unique constraint (PK_DIM_LEGAL_ENTITY_HIER) violated
insert into DIM_LEGAL_ENTITY_HIER(HIERARCHY_ID,PARENT_ID,CHILD_ID,PARENT_DEPTH_NUM,CHILD_DEPTH_NUM,DISPLAY_ORDER_NUM,SINGLE_DEPTH_FLAG,CREATED_BY,CREATION_DATE,LAST_MODIFIED_BY,LAST_MODIFIED_DATE)select 200186,
case when level =1 then level else level-1 end parent_depth_num ,
n_parent_display_code,
level child_depth_num ,
n_child_display_code ,
n_display_order_num ,
'Y' ,
-1,
sysdate ,
-1,
sysdate
from
(select n_parent_display_code ,
n_child_display_code , n_display_order_num
from STG_LEGAL_ENTITY_HIER_INTF
where v_hierarchy_object_name = 'Entidades')
start with n_parent_display_code = n_child_display_code
connect by nocycle prior
n_child_display_code=n_parent_display_code

There are no duplicate values.  Same issue exists with the Segment dimension.

The issue can be reproduced at will with the following steps:
1. No change to seeded data model
2. Run the fn_drmDataLoader for the Legal Entity dimension.
3. Check the errors

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