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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] String to Double conversion failing

I have a simple test job to read a delimited file with String data, convert the Strings to Double in a tMap, and display the results.
Why am I getting an exception on the tMap??
I expect it is a syntax error on my side, but I am not sure what the problem is.
Here are a couple of screen shots.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I rebuilt this job and the problem has gone away.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Screenshots:
Anonymous
Not applicable
Author

hi,
unfortunately I cannot read what's in your screenshoot but try and use those syntax :
Double.parseDouble(yourStringToConvert)

regards
laurent
Anonymous
Not applicable
Author

Yes, that is the same syntax I am using, but I am getting an exception: Exception in component tMap_1
tMap expression:
Double.parseDouble(row1.Net_Sales)
What is happening?
Anonymous
Not applicable
Author

I rebuilt this job and the problem has gone away.
Anonymous
Not applicable
Author

resolved ?? 0683p000009MACn.png
Set this topic as resolved so
regards
laurent