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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
manaskarandikar
Contributor
Contributor

tAdvancedFileOutputXML StringIndexOutOfBoundsException

I am using tAdvancedFileOutputXML to create a xml file that has an inner loop inside the main loop (tXMLMap was unable to perform that). The main loop xml data is written as follows: tHashInput --> tAdvancedFileOutputXML.
Here is the screenshot of the XML tree in tAdvancedFileOutputXML component:

On running the job here is the exception I get:
Exception in component tAdvancedFileOutputXML_3
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.charAt(String.java:658)
at org.dom4j.io.XMLWriter.writeElementContent(XMLWriter.java:1129)
at org.dom4j.io.XMLWriter.writeElement(XMLWriter.java:949)
at org.dom4j.io.XMLWriter.writeNode(XMLWriter.java:1301)
at org.dom4j.io.XMLWriter.writeElementContent(XMLWriter.java:1136)
at org.dom4j.io.XMLWriter.writeElement(XMLWriter.java:954)
at org.dom4j.io.XMLWriter.writeNode(XMLWriter.java:1301)
at org.dom4j.io.XMLWriter.writeElementContent(XMLWriter.java:1136)
at org.dom4j.io.XMLWriter.writeElement(XMLWriter.java:954)
at org.dom4j.io.XMLWriter.writeNode(XMLWriter.java:1301)
at org.dom4j.io.XMLWriter.write(XMLWriter.java:344)
at riits_dev.job_511_lcs_000_getroadwork_0_1.job_511_lcs_000_getRoadwork.tHashInput_3Process(job_511_lcs_000_getRoadwork.java:1651)
at riits_dev.job_511_lcs_000_getroadwork_0_1.job_511_lcs_000_getRoadwork.tRunJob_1Process(job_511_lcs_000_getRoadwork.java:7546)
: riits_dev.job_511_lcs_000_getroadwork_0_1.job_511_lcs_000_getRoadwork - tAdvancedFileOutputXML_3 String index out of range: -1
at riits_dev.job_511_lcs_000_getroadwork_0_1.job_511_lcs_000_getRoadwork.runJobInTOS(job_511_lcs_000_getRoadwork.java:7835)
at riits_dev.job_511_lcs_000_getroadwork_0_1.job_511_lcs_000_getRoadwork.main(job_511_lcs_000_getRoadwork.java:7669)
Is this a known issue that has a fix or workaround? Or am I using the component incorrectly?
Labels (4)
4 Replies
Anonymous
Not applicable

Hi 
Where is screenshot? Can you please try to upload it again? How many data does it process?
Regards
Shong
manaskarandikar
Contributor
Contributor
Author

Thanks for the quick reply. It seems when I use the UPLOAD option to paste image in the message it is not working.
I actually got rid of the error by removing all the namespaces. I do want to add the namespaces tough.
I expect to process about 10,000 Talend rows every minute.
manaskarandikar
Contributor
Contributor
Author

xml_tree_tAdvancedFileOutputXML.pdf.pdf
I had to print a PDF of the image. It should be attached to this message.
Anonymous
Not applicable

Hi 
The attachment is still not available, can you please export your job and send it to me via email? I will check it.
Regards
Shong