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.
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
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.
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...
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!