|
next
|
Subject: Whitespace problem when returning csv file within xquery Author: Bruce Cantor Date: 26 Jul 2022 11:37 AM
|
Hi Ivan
Thanks for answering.
Our file can be very large so I need to use the 'not to much memory' solution.
I created a xslt script and used the convertFromXml component instead, which works fine in the development environment, but not so fine on the server.
When I input XML in this structure to the component (converter:CSV:first=yes:quotes=:sep=;)
<table>
<row>
<Nr>01186-001</Nr>
<Beskrivning>T8705 VIDEO DECODER</Beskrivning>
<ManufacturerPartNumber>01186-001</ManufacturerPartNumber>
<EAN>7331021061774</EAN>
<YourNo/>
<OrderNo>1852588</OrderNo>
<OrderDate>15-09-2021</OrderDate>
<Referensnr>4500923432</Referensnr>
<ErReferens>Ellen Rosen</ErReferens>
<Antal>4</Antal>
<Återstår>0</Återstår>
<Leveransdatum>4 st. 'Shipped'</Leveransdatum>
<Datum>07-12-2021</Datum>
<Leveranssätt>DHL-SE</Leveranssätt>
<Leveransadress>XXX Security Sverige AB, hus 8-9, Elektronvägen 25, , 141 49, HUDDINGE, SE</Leveransadress>
<Valuta>EUR</Valuta>
<Belopp>10.29</Belopp>
<Totalt>41.16</Totalt>
<ProductPage>https://www.eetgroup.com/sv-se/itemId?itemid=01186-001</ProductPage>
</row>
</table>
I get, on the server, an error that looks like this:
(host:172.16.0.73) jul. 26, 2022 1:16:45 PM com.ivitechnologies.pipeline.server.OperationRunner runInternal
SEVERE: Error during conversion: Error during conversion: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
operation converter:CSV:first=yes:quotes=:sep=;
operation properties:
Adapter URL__isURL=true
annotation=false
Adapter URL=converter:CSV:first=yes:quotes=:sep=;
rotate=270
Name=Convert from XML
h=100
Operation=CONVERTFROMXML
ID=6
y=220
x=775
w=140
input URL file:///E:/Nav-PipelineServer-DataExchange/FilesFromNavision/Stanley/SE_5011817_20220726T131639.xml
I9.xmlconverter.exception.ConverterException: Error during conversion: Error during conversion: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at I9.xmlconverter.exception.ConverterException.wrapAsConverterException(ConverterException.java:117)
at I9.xmlconverter.platform.WrappedXMLReader$Dispatchable.runToEnd(WrappedXMLReader.java:70)
at I9.xmlconverter.impl.Job.runConversionNow(Job.java:299)
at I9.xmlconverter.impl.Job.runFromXml(Job.java:278)
at I9.xmlconverter.impl.Job.(Job.java:112)
at I9.xmlconverter.impl.ConverterImpl.convert(ConverterImpl.java:202)
at I9.xmlconverter.impl.ConverterImpl.convert(ConverterImpl.java:149)
at com.ivitechnologies.pipeline.server.OperationConvertFromXML.runInternal(OperationConvertFromXML.java:27)
Can you tell why I am getting this error on the Pipeline server, but not on the development environment?
|
|
|