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

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).
Anonymous
Not applicable
Author

Hi,
What's your XML file structure? Could you please paste it on forum?
Best regards
Sabrina
Anonymous
Not applicable
Author

I have a feeling the problem is more deeper than that.. but here:
XML Schema:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Root">
<xs:complexType>
<xs:sequence>
<xs:element name='row' type='ActorType' minOccurs='0' maxOccurs='unbounded' />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="ActorType">
<xs:sequence minOccurs="0">
<xs:element name="actorid" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="pdf" type="xs:base64Binary"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

XML File Input:
<?xml version="1.0" encoding="ISO-8859-15"?>
<root>
<row>
<actorid>1</actorid>
<name>PENELOPE</name>
<pdf>JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nOVdW5Nc</pdf>
</row>
<row>
<actorid>2</actorid>
<name>DANIEL</name>
<pdf>JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nOVdW5Nc</pdf>
</row>
</root>
Anonymous
Not applicable
Author

Still stuck. Any help ?
_AnonymousUser
Specialist III
Specialist III

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
Anonymous
Not applicable
Author

Talend Version: 5.4.1
OS: Windows 7
Location: Talend library on my windows desktop
JAVA: I've installed JRE 8.0, but currently using 7.0 on my talend open studio
willm1
Creator
Creator

Yes, it appears JDK 1.8 does not play nice with Talend 5.3/5.4. If you still have this issue, install 1.8 and install 1.7 (restart your system between uninstall and install to force registry updates).
Anonymous
Not applicable
Author

Hi,
Are there two JDK 1.8 and 1.7 in your PC? If so, could you please check your path variable to make sure JDK 1.7 value is set in front?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi,
Sabrina, i've already checked the environment path (You can see in the image i've attached).
Maybe I should uninstall JDK 8.0 ? (Although everything is configured to JDK 7.0?)
0683p000009MDoy.jpg