Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Syntax error on tokens, delete these tokens

Hello guys I am getting the error when job is executed from command prompt
Following is the structure of my job:

tFileList-->tFileInputXML-->tExtractDelimitedFields-->tFilterRow-->TMap--> tOracleOutout -->tFileOutputDelimited
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Syntax error on tokens, delete these tokens
job runs from Talend but not from command prompt

Any ideas or solution to resolve?
Thanks,
Yogesh
Labels (4)
4 Replies
Anonymous
Not applicable
Author

hi,
seems that you have a 'delimiter' open and not closed (or inverse)
First have a look on those example
To find which one , open your job and looks at the code ; on the right border you sould have a "red pointer" , click on it and you got the mistake
Propably a String parameters in a field without quote
++
laurent
Anonymous
Not applicable
Author

Thanks laurent,
But the java code shows no error and works perfect inside the Talend-UI, so is there any thing else that needs to handle?
Thanks,
Yogesh
Anonymous
Not applicable
Author

hi,
seems that you have a 'delimiter' open and not closed (or inverse)
Propably a String parameters in a field without quote
++
laurent

As reference for others, I was using a Microsoft SQL component for which strings must be enclosed
between double quotes ( " ) instead of simple quotes ( ' ).
Escaping the string quotes did the job for me ( \" )
Thanks
Anonymous
Not applicable
Author

Hi guys,
another reference for others, I also received the message "Syntax error on tokens, delete these tokens".
Reason:
There was one empty row within my tSplitRow component. Therefore the java code was like this:
"rowTmp_tSplitRow_1.ColumnName = ;" which results in an error message.
Solution:
I've just deleted the empty line in tSplitRow.
Hope this helps.