DQ Column Ambiguously Defined Error For Referential Integrity Check (FIC_MIS_DATE) (Doc ID 1915070.1)

Last updated on OCTOBER 04, 2016

Applies to:

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

Symptoms

On OFSAAI 7.3.4.0.0, when attempting to run Data Quality (DQ) rule the following error occurs:

ERROR
Failed--918-ORA-00918: column ambiguously defined

The issue can be reproduced at will with the following steps:

1. Migrate DQ rules from 7.2.x to 7.3.x environment
2. Run one rule
3. The process fails with the above error

The code inside the DQ rule is the following :
select 'STG_INVESTMENTS.v_account_code,STG_INVESTMENTS.fic_mis_date,STG_INVESTMENTS.v_gaap_code' pknames,STG_INVESTMENTS.v_account_code pk1,STG_INVESTMENTS.fic_mis_date pk2,STG_INVESTMENTS.v_gaap_code pk3,NULL pk4,NULL pk5,NULL pk6,NULL pk7,NULL pk8,STG_INVESTMENTS.V_CUST_REF_CODE errcol,NULL Range_Case,NULL length_Case,NULL colref_Case,NULL lov_Case,NULL null_Case,NULL blank_Case,case when STG_INVESTMENTS.V_CUST_REF_CODE is not null and STG_CUSTOMER_MASTER.V_CUST_REF_CODE is null and (1=1) then 1 else 0 end ref_Case from STG_INVESTMENTS left outer join STG_CUSTOMER_MASTER on STG_CUSTOMER_MASTER.V_CUST_REF_CODE = STG_INVESTMENTS.V_CUST_REF_CODE where (1=1)

At the runtime(Batch execution), while using the FIC_MIS_DATE, the code being run is the following :

select 'STG_INVESTMENTS.v_account_code,STG_INVESTMENTS.fic_mis_date,STG_INVESTMENTS.v_gaap_code' pknames,STG_INVESTMENTS.v_account_code pk1,STG_INVESTMENTS.fic_mis_date pk2,
STG_INVESTMENTS.v_gaap_code pk3,NULL pk4,NULL pk5,NULL pk6,NULL pk7,NULL pk8,STG_INVESTMENTS.V_CUST_REF_CODE errcol,NULL Range_Case,NULL length_Case,NULL colref_Case,NULL lov_Case,
NULL null_Case,NULL blank_Case,case when STG_INVESTMENTS.V_CUST_REF_CODE is not null and STG_CUSTOMER_MASTER.V_CUST_REF_CODE is null and (1=1) then 1 else 0 end ref_Case
from STG_INVESTMENTS left outer join STG_CUSTOMER_MASTER on STG_CUSTOMER_MASTER.V_CUST_REF_CODE = STG_INVESTMENTS.V_CUST_REF_CODE where (1=1)
And FIC_MIS_DATE = to_date(20130930,'YYYYMMDD') --> OFSAA
 add this filter condition

First query DQ generated but when the batch is executed, OFSAA added FIC_MIS_DATE=<> filter because the batch is executed with this MISDATE.

The system added the condition "and FIC_MIS_DATE = to_date(20130930, 'YYYYMMDD')".

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