Load Data Warehouse (DWH) is failing with error:
ENCOUNTERED EXCEPTION WHILE MERGING INTO DWH_INV_INVESTMENT. value too long for type character varying(21)
Table and column length may vary.
How to identify which field is failing?
Release : Any
Component : CLARITY DATA WAREHOUSE
Database: Postgres
This is caused by a mismatched length for an attribute, likely if the length was changed but the attribute was already added to Data Warehouse.
select table_name, column_name, data_type, character_maximum_length from information_schema.columns where table_name = 'dwh_inv_investment' and character_maximum_length >= xx
To fix the field, use the steps below once identified:
Check KB Load DWH fails with "value too long for type character varying" for full information on cause and prevention