Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
String strBoolean = "true";
//Do the String to boolean conversion
boolean theValue = Boolean.parseBoolean(strBoolean);
System.out.println(theValue);
Boolean.valueOf(row3.column_name)
Hi All,
I wanted to convert data type string to boolean. input data is T/F.
getting an error: Cannot convert "F" to Boolean
Hello,
Could you please show us the function you are using? What does your expected result look like?
Best regards
Sabrina
Hello Sabrina,
@Xiaodi Shi
Thank you for reply.
Source - T/F (datatype string) Target - T/F (Boolean)- Same value but diff datatype
I am trying to convert String data type value to boolean.
Source is DB Table where values are T/F. Tmap used for just for transformation.
using tconverttype I am doing conversion from string to boolean but getting below error:
Cannot convert "T" to Boolean
Cannot convert "F" to Boolean
Cannot convert "T" to Boolean
Cannot convert "T" to Boolean
Cannot convert "F" to Boolean
Cannot convert "F" to Boolean
Cannot convert "F" to Boolean
Please help.
Thanks