NullPointer Exception in a tAdvancedFileOutputXML

One Star

NullPointer Exception in a tAdvancedFileOutputXML

Hi,
I have a similar problem as http://www.talendforge.org/forum/viewtopic.php?id=11559 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.
One Star

Re: NullPointer Exception in a tAdvancedFileOutputXML

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.
Highlighted
One Star

Re: NullPointer Exception in a tAdvancedFileOutputXML

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.
One Star

Re: NullPointer Exception in a tAdvancedFileOutputXML

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

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch