Convert String to BigInt
Posted: Wed Feb 15, 2012 5:19 pm
I am trying to convert string field to Decimal in Transformer using:
StringToDecimal(string_field)
inside a Stage variable of datatype decimal(10, 0) and string_field is varchar(10).
but I get:
Transformer_7,1: Fatal Error: APT_Decimal::assignFromUInt64: the integer source (100013001) is out of range for a decimal with precision 8 and scale 0. [decimal/decimal.f.C:945]
Also tried with Decimal (15,0) as stage variable's data type - same error.
Is there a workaround in transformer? Will I have to use Modify stage?
Thanks
Gary
StringToDecimal(string_field)
inside a Stage variable of datatype decimal(10, 0) and string_field is varchar(10).
but I get:
Transformer_7,1: Fatal Error: APT_Decimal::assignFromUInt64: the integer source (100013001) is out of range for a decimal with precision 8 and scale 0. [decimal/decimal.f.C:945]
Also tried with Decimal (15,0) as stage variable's data type - same error.
Is there a workaround in transformer? Will I have to use Modify stage?
Thanks
Gary