Remove ASCII Code 160 in transformer
Posted: Thu Aug 31, 2017 8:31 am
I have requirement to trim the 'Phone_number' columns.
Input(source) output(target)
PHONE_NUM-Char(15) PHONE_NUM-Varchar(15)
When I used the function Trim(PHONE_NUM), it trimmed the leading and trailing spaces, but the job failed with an error below
"1. Error code: 12899, Error message: ORA-12899: value too large for column "MSPO_TEST"."D_VENDORS1"."PHONE_NUM" (actual: 16, maximum: 15)."
Trim will remove only the spaces from front and back of the string.
When I investigated unable to see the 'ASCII Code 160' in the source oracle database and it is invisible. When I copied into the notepad with hex editor, found the 'ASCII Code 160'.
Another try I did is when I increased the output column datalength to Varchar(16) , the job ran fine. Came to know that I am not allowed to increase the datalength in target table
Please let me know how to remove this 'ASCII Code 160' in transformer. Thanks.
Input(source) output(target)
PHONE_NUM-Char(15) PHONE_NUM-Varchar(15)
When I used the function Trim(PHONE_NUM), it trimmed the leading and trailing spaces, but the job failed with an error below
"1. Error code: 12899, Error message: ORA-12899: value too large for column "MSPO_TEST"."D_VENDORS1"."PHONE_NUM" (actual: 16, maximum: 15)."
Trim will remove only the spaces from front and back of the string.
When I investigated unable to see the 'ASCII Code 160' in the source oracle database and it is invisible. When I copied into the notepad with hex editor, found the 'ASCII Code 160'.
Another try I did is when I increased the output column datalength to Varchar(16) , the job ran fine. Came to know that I am not allowed to increase the datalength in target table
Please let me know how to remove this 'ASCII Code 160' in transformer. Thanks.