Ive spent hours trying to fix this issue. For the column that\'s giving me the problem i am using a scalar-function in sql server to grab the name. The function is correct and
Correct me if I'm wrong, but I've found that clicking Preview-button when getting data from source, causes wrong lengths to set for columns, especially for strings.
This might be because of length are determined from preview data got. So, better practice is to click Columns-tab in Source-dialog after selecting source-table. This is the case mainly with ODBC sources.