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.
Forgot to mention: 1. I'm using jre7 within the talend open studio. (Though I have jre8 installed). 2. One more question: How can I receive any file with XML extension ? (In tFileInputXML component I have to write a name of xml file).
what version of talend are you using ? and location where you have installed it? what version of java are you using? your OS? i just solved this issue and i might be able to help you with that if you provide me above information
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.
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!