I have input field row1.COMMON_PAR_VALUE in string format, but output field having type BigDecimal.
I want to convert this string datatype to respective output datatype.
I would try with following:
Integer.parseInt(row1.COMMON_PAR_VALUE)
and
Float.parseFloat(row1.COMMON_PAR_VALUE)
But above two expression gives error:
Exception in component tRowGenerator_1
Hi,
Did you want to convert "String" to " BigDecimal" or "Integer"? If later, the Integer.parseInt(row1.COMMON_PAR_VALUE) should be och. If former, you should use
java.math.BigDecimal(row1.COMMON_PAR_VALUE)
.
Could you please upload your tMap setting screenshot into forum so that we can address your issue quickly.
Best regards
Sabrina