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

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

NullPointer Exception in a tAdvancedFileOutputXML

Hi,
I have a similar problem as https://community.talend.com/t5/Design-and-Development/tAdvancedFileOuputXML-not-able-to-use-namespa... but I don't find (understand?) the answer.
Attached to this message, you'll find the job and both tAdvancedFileOutputXML.
In running, I have
"Exception in component tAdvancedFileOutputXML_2
java.lang.NullPointerException"
I've tried with "RefereceDepot" in first tAdvancedFileOutputXML, or not. Same result.
It's the same name of file "copy/paste"
But not the same XML Tree (I've tried with the same).
I don't fint the way to answer...
Thank's for your help.
Labels (4)
3 Replies
Anonymous
Not applicable
Author

You need an extra element. This XML document is built up row-by-row from reference_depot records. The extra element will represent a reference_depot row and contains the subelements and attributes. "BD" is used for all the rows. The "RD" in this screenshot is the loop element containing a single row.
Anonymous
Not applicable
Author

If I set only a loop boucle (as you seem saying), Talend send message "Parameter (XML Loop) must set as loop and set a group at least.".
I've update the two "tAdvancedFileOutputXML", the tree had not the same root. Now they have.
But I always not understand.
Anonymous
Not applicable
Author

I've found a solution.
There is now a subjob to write "ReferenceDepot" loop, and one other for "Publication". And now, it's run 0683p000009MACn.png
Thank you 0683p000009MACJ.png