Incremental (Incr) Load Data Warehouse (DWH) fails when multiple languages are added to the DWH after updating / creating a status report. Error:[CA Clarity][Oracle JDBC Driver][Oracle]ORA-20100: ENCOUNTERED EXCEPTION IN DWH_DIM_LOAD (DWH_INV_STATUS_REPORT). SQLERRM : ORA-30926: unable to get a stable set of rows in the source tables
ORA-06512: at line 24
Steps to Reproduce:
Expected Results: The job succeeds
Actual result: The job fails with the following reference in logs:
[CA Clarity][Oracle JDBC Driver][Oracle]ORA-20100: ENCOUNTERED EXCEPTION IN DWH_DIM_LOAD (DWH_INV_STATUS_REPORT). SQLERRM : ORA-30926: unable to get a stable set of rows in the source tables
ORA-06512: at line 24
The DWH schema dwh_meta_tables configuration is not correct
Run this query against the DWH dwh_meta_tables to identify if you are hitting this issue:
SELECT dwh_table, has_extension_table, is_extend, multi_lang FROM dwh_meta_tables WHERE dwh_table = 'DWH_INV_STATUS_REPORT'
The results should be: has_Extension_table = 1, is_extend = 0, multi_lang = 1
In this example, all 3 values are 0
select * from DWH_COP_PRJ_STATUSRPT_V where investment_key = 5003001
select * from DWH_INV_STATUS_REPORT where investment_key = 5003001
Error message in logs:
ERROR 2020-01-13 14:10:30,281 [Thread-903258] dwh.event ClarityDB - isOracle? - An error occurred executing this job entry :
Couldn't execute SQL: DECLARE
V_SQL_TEXT CLOB;
V_SQLCODE NUMBER;
V_SQLERRM VARCHAR2(4000);
BEGIN
MERGE INTO DWH_INV_STATUS_REPORT TGT
[CA Clarity][Oracle JDBC Driver][Oracle]ORA-20100: ENCOUNTERED EXCEPTION IN DWH_DIM_LOAD (DWH_INV_STATUS_REPORT). SQLERRM : ORA-30926: unable to get a stable set of rows in the source tables
ORA-06512: at line 24
UPDATE dwh_meta_tables set has_extension_table = 1, multi_lang = 1 WHERE dwh_table_name = 'dwh_inv_status_report'
Run the Full Load DWH job as this will update the DWH schema properly.