cannot convert from boolean to String in tmap talend

Six Stars

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
Sixteen Stars

Re: cannot convert from boolean to String in tmap talend

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'"
Community Manager

Re: cannot convert from boolean to String in tmap talend

Hi
Take a look at tfilterRow component, you can filter the rows with component. 
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business