Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Convert with tConvertType null to new BigDecimal(0)

Hello,
I have an input Db which contains columns only with Varchar and I want to convert this to the right type. Then I want save them in my DB.
But if I use the tConvertType component it cant convert a null Value to a BigDecimal value.
How I can convert null values to new BigDecimal(0)?
thx
0683p000009MBhI.jpg
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi 
Try to convert the data type on tMap with this expression:
row3.newColumn==null?new java.math.BigDecimal(0):new java.math.BigDecimal(row3.newColumn)
Best regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi 
Try to convert the data type on tMap with this expression:
row3.newColumn==null?new java.math.BigDecimal(0):new java.math.BigDecimal(row3.newColumn)
Best regards
Shong