I am trying to convert a string to Decimal and getting the following errors.
1. Transformer_11,1: Numeric string expected of the appropriate decimal precision . Use default value.
2. Transformer_11,0: Conversion error calling conversion routine decimal_from_string data may have been lost.
Additional Info:- I am getting the data with scale 5 and negative numbers like (0.12345). I am using a stage variable
Code: Select all
svAmount = Trim(Convert('(,)','-,',(Convert(',','',Trim(DSLink2.CS_TRN_GC)))) )
Code: Select all
StringToDecimal(SvAmount) * 1000 - Target column is 17,2 need to round off or truncate to 2 decimal places