String to Number Convertion ( User defined SQL ) problem
Posted: Fri Feb 12, 2010 9:41 am
Hi
I write a user defined query in Oracle EE stage to read columns for look up. In that SQL i used TO_NUMBER for one of column to covert string to Number. Because the target column data type is Number.
I am getting error while i am reading.
##I TFCN 000001 10:24:40(000) <main_program>
Ascential DataStage(tm) Enterprise Edition 7.5.1A
Copyright (c) 2004, 1997-2004 Ascential Software Corporation.
All Rights Reserved
##I TUTL 000031 10:24:40(001) <main_program> The open files limit is 8192; raising to.
##I TOSH 000002 10:24:41(000) <main_program> orchgeneral: loaded
##I TOSH 000002 10:24:41(001) <main_program> orchsort: loaded
##I TOSH 000002 10:24:41(002) <main_program> orchstats: loaded
##I TFSC 000001 10:24:41(003) <main_program> APT configuration file: /usr/local/etl/default.apt
##W TCOS 000049 10:24:42(000) <main_program> Parameter specified but not used in flow: DSProjectMapName
>##E TFIP 000000 10:24:43(001) <Oracle_Enterprise_9> Error when checking operator: When binding output interface field "ACT_ID" to field "ACT_ID": Implicit conversion from source type "decimal[38,10]" to result type "string[12]": Not enough room in string for decimal[38,10].
>##E TFSR 000019 10:24:43(002) <main_program> Could not check all operators because of previous error(s)
##W TFIP 000022 10:24:43(003) <Oracle_Enterprise_9> Error when checking operator: When binding output interface field "ACT_ID" to field "ACT_ID": Converting a nullable source to a non-nullable result;
a fatal runtime error could occur; use the modify operator to
specify a value to which the null should be converted.
>##E TCOS 000029 10:24:43(004) <main_program> Creation of a step finished with status = FAILED.
>
Please help what is wrong.
I write a user defined query in Oracle EE stage to read columns for look up. In that SQL i used TO_NUMBER for one of column to covert string to Number. Because the target column data type is Number.
I am getting error while i am reading.
##I TFCN 000001 10:24:40(000) <main_program>
Ascential DataStage(tm) Enterprise Edition 7.5.1A
Copyright (c) 2004, 1997-2004 Ascential Software Corporation.
All Rights Reserved
##I TUTL 000031 10:24:40(001) <main_program> The open files limit is 8192; raising to.
##I TOSH 000002 10:24:41(000) <main_program> orchgeneral: loaded
##I TOSH 000002 10:24:41(001) <main_program> orchsort: loaded
##I TOSH 000002 10:24:41(002) <main_program> orchstats: loaded
##I TFSC 000001 10:24:41(003) <main_program> APT configuration file: /usr/local/etl/default.apt
##W TCOS 000049 10:24:42(000) <main_program> Parameter specified but not used in flow: DSProjectMapName
>##E TFIP 000000 10:24:43(001) <Oracle_Enterprise_9> Error when checking operator: When binding output interface field "ACT_ID" to field "ACT_ID": Implicit conversion from source type "decimal[38,10]" to result type "string[12]": Not enough room in string for decimal[38,10].
>##E TFSR 000019 10:24:43(002) <main_program> Could not check all operators because of previous error(s)
##W TFIP 000022 10:24:43(003) <Oracle_Enterprise_9> Error when checking operator: When binding output interface field "ACT_ID" to field "ACT_ID": Converting a nullable source to a non-nullable result;
a fatal runtime error could occur; use the modify operator to
specify a value to which the null should be converted.
>##E TCOS 000029 10:24:43(004) <main_program> Creation of a step finished with status = FAILED.
>
Please help what is wrong.