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: 
carlrees123
Contributor
Contributor

error when testing an expression

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?

 

 

Labels (3)
1 Solution

Accepted Solutions
cterenzi
Specialist
Specialist

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.

View solution in original post

14 Replies
TRF
Champion II
Champion II

 This should be better:

"Y".equalsIgnoreCase(row2.name2) ? "Yes" : "No"
carlrees123
Contributor
Contributor
Author

Thanks but gives same error when hitting the  test button !

see image


a1.JPG
cterenzi
Specialist
Specialist

Should the test value be "Y" instead of just Y?

Anonymous
Not applicable

Hello,

Don't use =="".  Instead use .equals("").

Is your tMap Ok with you when you omit clicking on "Test"?

Best regards

Sabrina

 

carlrees123
Contributor
Contributor
Author

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 !

 


a1.JPG
Anonymous
Not applicable

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

carlrees123
Contributor
Contributor
Author

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!

 

 

cterenzi
Specialist
Specialist

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.

carlrees123
Contributor
Contributor
Author

Thanks  

 

I did, got same error from the Test ! button.

I think its just a bug, but false positives are very very dangerous.