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

tJava vs tJavaRow

Hi,
I have a problem with the usage of the components tJava and tJavaRow. In the attached screenshots you can see a job where I iterate through a directory containing XML files. In the following example 4 identical XML files are included in the directory:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<nodeA>
<Value key="KeyA">Some text</Value>
</nodeA>
</root>
Via XPath in tFileInputXML I would like to read some values from the XML tree and create a new filename for every XML file. In the example I read the text of the <Value> node. In the following Java component I compose the new filename.
Using component tJavaRow all the values ("Some text" in this example) are read correctly. Using component tJava the value read from the first XML file is null (see the screenshot). What is the reason?
0683p000009MDZ6.png 0683p000009MDe0.png 0683p000009MDe5.png 0683p000009MDV5.png
Labels (4)
2 Replies
Anonymous
Not applicable
Author

Hi,
Have you already checked talend KB article about TalendHelpCenter:The difference between tJava tJavaRow and tJavaFlex?
Best regards
Sabrina
Anonymous
Not applicable
Author

Thanks. The info from the article that component tJava is executed first and once in the subjob made it clearer to me.