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

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

java.lang.NumberFormatException

Hi,

 

I'm trying to convert a value coming from a REST component which is converted to xml.  The value passed into the TXMLMAP converts it to integer, but the actual field is a currency amount (dollar amount) so I need the decimal.  I have tried leaving the output fields as int, bigdecimal, long, string.  With each output data type, I  have tried to convert the input value of "1.5" to the appropriate output data type.  Everytime I get the error below.  So I'm at my wits end with this.  Any help would be appreciated.

 

Exception in component tXMLMap_1_TXMLMAP_OUT (***_***_******_Integration_040_***_Integration)
java.lang.NumberFormatException: For input string: "1.5"

Labels (6)
1 Reply
vapukov
Master II
Master II

Hi,

 

an error could be affected not only on output component but and for input as well.

You need to check in the tXMLMap what type defined:

0683p000009M8vl.png

 

if String used everywhere - must work