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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch