Hi Patrick,
Based on your description, the issue is that when you set the format of the excel destination external columns to double precision float DT_R8, it is returned to DT_WSTR automatically. So you cannot load the column data with numeric data type in Excel.
After testing the issue in my environment, the issues is caused by the data type of external columns is decided by the column data type in Excel, so you cannot change them successfully.
To fix this issue, please refer to the following tips:
- If the destination table already contains rows of data, the existing data should be numeric. Because Excel driver recognizes only a limited set of data types. For example, all numeric columns are interpreted as doubles (DT_R8), and all string columns (other
than memo columns) are interpreted as 255-character Unicode strings (DT_WSTR).
- If the destination table is created during package design or at run time, then the CREATE TABLE statement must use LONG (or one of its synonyms) as the data type of the columns.
Thanks,
Katherine Xiong