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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error while trying to run a simple job

Hi,
I'm using the latest version of talend and I'm trying to do something simple:
Read an XML file which matches a schema, and print its rows with tLogRow.
I'm new to talend, and just to mention I've already managed to run a job with talend (which takes rows from DB and puts them out to a file).
I've attached my job image.
Unfortunately, I'm getting the following error when trying to run the job:
"
Execution failed : Failed to generate code.

Job FileRequest ended at 15:39 20/04/2014.
"
0683p000009MDUG.png
Labels (3)
17 Replies
Anonymous
Not applicable
Author

Hi,
I think the problem is with input schema for pdf data type. Also you don't have schema for pdf in your job. Can you try creating a schema in repository and test the job.
<xs:element name="pdf" type="xs:base64Binary"/>
I used string for PDF, it works fine.
Thanks
Vaibhav
Anonymous
Not applicable
Author

Hi,
Don't think it is the problem because at first that schema and file didn't have any pdf and I still got that error.
Anonymous
Not applicable
Author

Have you created a schema in repository for your xml input file?? Whether it displays data correctly in the preview?
Vaibhav
Anonymous
Not applicable
Author

Hi,
I'm getting : "Failed to generate code" on the preview of the schema.
I've attached the printed screen.
I've changed the encoding of the input file to UTF-8, and also chose UTF-8 encoding after xml file selection.
0683p000009MDok.png
Anonymous
Not applicable
Author

Any help ?
willm1
Creator
Creator

ohadtest1 - what jdk are you using? Failed to generate code seems to indicate you have an environment setup issue...
If you're using jdk 1.8, you need to downgrade to 1.7
See http://www.talendforge.org/forum/viewtopic.php?pid=133934#p133934
and read the responses that follow...
Anonymous
Not applicable
Author

PROBLEM SOLVED!
Pay attention that even if you change "JAVA_HOME", java still can run from 1.8 library.
So make sure you write in command line: "java -version" to check what is the version that Talend works with.
After uninstalling JAVA 8, everything works fine. Changing paths isn't enough!
Anonymous
Not applicable
Author

Hi,
Great it is fixed. Could you please mark this topic as resolved?
Best regards
Sabrina