Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey there,
I want to use this here:
(row5.SUMJHR ! = null ? row5.SUMJHR.toPlainString() : row5.SUMJHR)
talend gets me the error: "Type mismatch: cannot convert from Object&Serialzable&Comparable<?> to String"
Any Idea? The input row is BigDecimal.
Thanks a lot!
I got the solution:
row5.SUMJHR == null ? null : row5.SUMJHR.toPlainString()
You need to give me more info. For example, what is the field type that this is setting. I am assuming it is String. However, a quick solution might just be this....
(row5.SUMJHR ! = null ? row5.SUMJHR.toPlainString() : null)
(row5.SUMJHR ! = null ? row5.SUMJHR.toPlainString() : row5.SUMJHR)
i think your expression is wrong. Use this:
(row5.SUMJHR ! = null)? row5.SUMJHR.toPlainString() : row5.SUMJHR
Be sure that your output is a String type
SGV
@sgv there is no difference between those two expressions. The brackets do nothing
I got the solution:
row5.SUMJHR == null ? null : row5.SUMJHR.toPlainString()
That is what I suggested
Hello,
Please mark solution as accepted if it is OK with you question.
Best regard
Sabrina