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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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 ?
Labels (4)
3 Replies
Anonymous
Not applicable
Author

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

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

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