Dimension Loader fn_stgdimdataloader Fails With ORA-00001: unique constraint (DIM_PRODUCTS_TL) violated Errors (Doc ID 2158060.1)

Last updated on JULY 07, 2016

Applies to:

Oracle Financial Services Analytical Applications Infrastructure - Version 7.3 and later
Information in this document applies to any platform.
Oracle Financial Services Analytical Applications (OFSAA)
Oracle Financial Services Analytical Applications Infrastructure (OFSAAI)

Symptoms

On OFSAA 6.1.1.1.0 with OFSAAI 7.3.5.2, when attempting to execute the Master Table Dimension Loader program fn_stgdimdataloader, it fails with ORA-00001: unique constraint (ALM.DIM_PRODUCTS_TL) violated errors.  The following errors are output to FSI_MESSAGE_LOG:

ERROR

PROCESS_ID SEQUENCES CONTEXT_SPECIFIC_TEXT
160 1 Starting Staging Dimension Loader
160 2 Inserted 428 records into DIM_PRODUCTS_B
160 3 " insert INTO DIM_PRODUCTS_B(PRODUCT_ID,PRODUCT_DISPLAY_CODE,
ENABLED_FLAG, LEAF_ONLY_FLAG,
DEFINITION_LANGUAGE,CREATED_BY,CREATION_DATE,LAST_MODIFIED_BY,LAST_MODIFIED_DA
TE ,PRODUCT_CODE) SELECT STG_DIMENSION_LOADER.getMaxMemberId( NVL ( 'Y','Y'),
aa.v_prod_code,rownum), STG_DIMENSION_LOADER.getMaxMemberId( NVL ( 'Y','Y'),
aa.v_prod_code,rownum),'Y', 'Y','US',-2 created_by ,sysdate created_date
,-2 modified_by,sysdate modified_date ,v_prod_code from stg_product_master aa
where 1=1 and not exists
(select 1 from DIM_PRODUCTS_B bb
where aa.v_prod_code=bb.PRODUCT_CODE)"
160 4 Error .ORA-00001: unique constraint (ALM.DIM_PRODUCTS_TL) violated
160 5 " MERGE INTO DIM_PRODUCTS_TL TARGET_TABLE

Steps to Reproduce Problem
1. Run the fn_STGDimDataLoader from the batch UI using the following parameters list: 4,'N','N'

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