I have tried several ways to format a derived column to eliminate trailing spaces. To format the column when just viewing the column in Excel and transferring to Access was:
'=TRIM(CLEAN(SUBSTITUTE(E2,CHAR(160),"")))
In the derived column I've tried:
- REPLACE(RTRIM([Provider Number]),"\\x00A0","") == "" ? (DT_STR,10,1252)NULL(DT_STR,10,1252) : [Provider Number]
- TRIM([Provider Number]) == "" ? (DT_STR,10,1252)NULL(DT_STR,10,1252) : [Provider Number]
- LTRIM(RTRIM([Provider Number]))
When I query the length for the column my results still count 1 extra space when the package runs (successfully):