Load Data warehouse job fails when running with full load or incremental option in production environment. The environment was recently upgraded from clarity 15.1 to 15.9.1 and the DB is oracle.
The error message in DWH log:
Mismatch of metadata between Clarity and Datawarehouse schemas.
SQL queries used to run agains Clarity schema to check for Datawarehouse metadata discrepancies:
SELECT column_name,IS_DW_ENABLED FROM odf_custom_attributes where object_name ='cop_prj_statusrpt' and column_name in ( 'NAME', 'CODE', 'cop_cost_effort_ext', 'cop_cost_effort_rev','cop_cost_eft_staff', 'cop_cost_eft_status','cop_effort_exp', 'cop_key_accomplish','cop_overall_status', 'cop_report_date','cop_report_status', 'cop_report_update','cop_sched_milestone', 'cop_schedule_exp','cop_schedule_status', 'cop_scope_change','cop_scope_deliver', 'cop_scope_exp','cop_scope_obj', 'cop_scope_status','cop_upcoming_act');
-- "The query should return all 1s for the listed attributes"
Steps to resolve in this particular scenario where the correction was only needed on the DWH_META_COLUMNS:
The SQL logic mentioned in the following support KB should help to get a more comprehensive picture for metadata mismatch between clarity and Datawarehouse: