If you have just added new custom objects to your object model, or just added new custom fields to existing objects, run WH_install.bat (for Windows) or ./WH_install.sh (for Linux) before running refresh. This creates new custom field tables in the target database and/or creates new columns in existing custom field tables.
Important: When new custom fields are handled by running one of these files, it is possible that column names in some Data Warehouse views may change, and existing column names could now refer to different data than they did previously. This is caused by the way duplicate column names (in the source database) are handled by table WH_CF_MAPPING (see Helper Table Definitions). Check for this situation and, if necessary, revise your reports to use the changed column names.