Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
comes up in red
image attached
does anyone think the expression is incorrect? -- no, so why the error?
upon exiting expression builder and run the job it works perfectly... known bug?
I was able to reproduce this when I put "Y" as the value for name2. I finally found an example of how to use the expression builder Test feature in the documentation:
https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/UiJEcAn2BxH5csEtuIR5pA
It shows that test values should not be wrapped in quotes, so I removed my quotes. After that, the test started working and displays "Yes" in the output area.
This should be better:
"Y".equalsIgnoreCase(row2.name2) ? "Yes" : "No"
Should the test value be "Y" instead of just Y?
Hello,
Don't use =="". Instead use .equals("").
Is your tMap Ok with you when you omit clicking on "Test"?
Best regards
Sabrina
Thanks all but still gives an error.....
how do I check if this is a bug in Talend ?
the code works, however the code that runs behind the Test! button does not seem to like expressions with correct syntax !
Hi,
Have you tried to execute your job without clicking on "Test" to see if there is any error printed on console?
Best regards
Sabrina
Bury your head in the sand and IGNORE THE FACT THAT TALEND HAS AN BUG................ at your peril,
if this tool does not work as expected i'm not committing my companies data to it , period. THERE IS NO TRUST, reasonable ? tell me if i'm not being reasonable?
hand coded java c# f# will always be better, than a tool that is always half right because you will never know when Talend is telling the truth and when it has odd error messages for no reason!
Did you attempt to change the test value to "Y" like I suggested? Fields which take string literals in Talend almost always require that the value be wrapped in quotes. I did not see quotes around the Y in your original screenshot.