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

cannot convert from boolean to String in tmap talend

HI team ,
I m trying to check null or not null ..getting below error

cannot convert from boolean to String . my input field is string .. though it is string its showing error message that its Boolean
Please help
regards
MOhini
Labels (2)
2 Replies
Anonymous
Not applicable
Author

You will need to show us what you have done. I suspect you are doing something like below.....
myString!=null

This will result in a boolean. Or maybe you are using a function that results in a boolean.
To get round this, you need to know what you want to do if the variable is null and if it isn't. You can use an inline IF to deal with this like below....
myString!=null ? myString : "myString is null"

The above says "If myString is not null, then use the value held by myString. Otherwise use 'myString is null'"
Anonymous
Not applicable
Author

Hi
Take a look at tfilterRow component, you can filter the rows with component. 
Best regards
Shong