tAdvancedFileOutputXML tree index limitation

One Star

tAdvancedFileOutputXML tree index limitation

Hello,
I am trying to create an XML using tAdvancedFileOutputXML component, my Account tag has multiple types of child tags (around 20). But after 6 records Talend gives an error:
Exception in component tAdvancedFileOutputXML_7
java.lang.IndexOutOfBoundsException: Index value: 6 cannot be greater than the size: 3
at org.dom4j.tree.BackedList.add(BackedList.java:65)
Initially I thought its data issue but it is not. If I am trying to skip 5-6 child tags and then process the next one, then also it fails after 6th child tag.
Is there a limitation in this component that the child tags can only be 6-7?
Attached screenshot of the XML tree. The highlighted box is the child tag after which I cannot process any record.
Can someone provide any pointers? Thanks!
Employee

Re: tAdvancedFileOutputXML tree index limitation

Hello dhruvgupta05,
Which version do you use?
If it is not a version of 5.3.1, please download 5.3.1 and have a try again.
Highlighted
One Star

Re: tAdvancedFileOutputXML tree index limitation

Hi Wliu,
Thanks for your reply. I am using TOS DI V5.3.1 r104014. Was the issue fixed in some other release?
One Star

Re: tAdvancedFileOutputXML tree index limitation

Hi Wliu,
I have found that if we check the "Create empty elements if needed" option then this error occurs. One I unchecked this for all the tAdvancedFileOutputXML component the exceptions were gone. May be this is a bug?
Thanks for looking into this!
One Star

Re: tAdvancedFileOutputXML tree index limitation

Hello,
I had the same issue .
Your workaround worked. But i found another one !
I dthe sequence of xml subelement that are located in the group element, as there is no crossed arrow ( same order as source stream). And it worked. strange bug...

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

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch