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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

error : cannot convert from string to boolean

Hello,
I've a problem with the tMap component. I have this error :
"Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from String to boolean"
Here is the tMap expression I use (everything is String)
row16.E_NOFINESS + StringHandling.LEFT((String) row11.NUMLOT,1) .equals("1") ? row11.NUMLOT : StringHandling.RIGHT((String) row11.NUMLOT,1)

Can someone help me to do it work ?
Thanks a lot
MarieO
Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hello,
Could you put some screenshots of your Tmap in your post?
Thanks
JC
Anonymous
Not applicable
Author

Here is the screenshot...
Thank you
MarieO
0683p000009MCcx.jpg
amaumont
Contributor III
Contributor III

Try this with additional brackets:
row16.E_NOFINESS  + ( StringHandling.LEFT((String) row11.NUMLOT,1) .equals("1") ? row11.NUMLOT : StringHandling.RIGHT((String) row11.NUMLOT,1) )