tXMLMap shoot a bug in some configurations

One Star

tXMLMap shoot a bug in some configurations

Hi,
Please refer to the enclosed screenshot.
When I try to use "group" in a tXMLMap for a unique child element (over a loop), I got the following error
Exception in component tXMLMap_1
java.lang.IndexOutOfBoundsException: Index value: 5 cannot be greater than the size: 0
at org.dom4j.tree.BackedList.add(BackedList.java:65)
at job_009.g_trytowritenewxmlfile_0_1.G_TryToWriteNewXmlFile$1GenerateDocument_out1.generateElements(G_TryToWriteNewXmlFile.java:843)
Involved code is the following:
/* build group xml tree */
boolean isNewElement = false;
isNewElement = false;
org.dom4j.Element loop = org.dom4j.DocumentHelper.createElement("Node");
subTreeRootParent.elements().add(orderHelper.getInsertLocation(1, 5), loop);
Is there a hard coded limitation on child to be added ?
Is there anything I do wrong ?
One Star

Re: tXMLMap shoot a bug in some configurations

Hi
Please send me an email and attach this export job.
I will test it for you.
Regards,
Pedro
One Star

Re: tXMLMap shoot a bug in some configurations

Hello,
I do have same problem with append the source file. Any update on the error reason and fixes?
BR,
One Star

Re: tXMLMap shoot a bug in some configurations

Hello,
I do have same problem with append the source file. Any update on the error reason and fixes?
BR,

I solved my issue by putting group element attribute also on parent of loop element. Actual group element is parent of parent.
Line - group element
@Line_No - line_No
Line_Tech - group
@Line_No - workaround, equal to @Line_No of Line
Tech - loop element
@Tech_ID
...