This post has NOT been accepted by the mailing list yet.
Hi,
Please help me to resolve this issue. I am getting continuously error as below : Caused by: org.milyn.edisax.EDIParseException: EDI message processing failed [SLSRPT][D:01B:UN]. Must be a minimum of 1 instances of segment [UNS]. Currently at segment number 16. at org.milyn.edisax.EDIParser.mapSegments(EDIParser.java:504) My edifact is as below: UNA:+.? 'UNB+UNOC:3+1111111111113:14+1111111111111:14+151022:2306+3'UNH+1+SLSRPT:D:01B:UN'BGM+73E::9:X+00260000000100+9'DTM+137:20151022:102'DTM+90:20151022:102'DTM+91:20151022:102'NAD+SU+1111111111111::9'NAD+BY+1111111111113::9'CUX+2:EUR:11'LOC+162+1111111111112:::9'DTM+356:20151022:102'LIN+1++123456409734692:SRV'PRI+1E:149.95::RTP'PRI+AAB:5854::CTP'QTY+153:1'CUX+2:EUR:11'LOC+162+1111111111112:::9'DTM+356:20151022:102'LIN+2++123456:SRV'PRI+1E:139.95::RTP'PRI+AAB:5463::CTP'QTY+153:1'CUX+2:EUR:11'LOC+162+1111111111112:::9'DTM+356:20151022:102'LIN+3++123456409744943:SRV'PRI+1E:109.95::RTP'PRI+AAB:4400::CTP'QTY+153:1'UNS+S'UNT+30+1'UNZ+1+3' smooks config is as below: <?xml version="1.0"?> <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:unedifact="http://www.milyn.org/xsd/smooks/unedifact-1.5.xsd" xmlns:core="http://www.milyn.org/xsd/smooks/smooks-core-1.4.xsd"> <core:filterSettings type="SAX" defaultSerialization="true" terminateOnException="true" readerPoolSize="3" closeSource="true" closeResult="true" rewriteEntities="true" /> <unedifact:reader mappingModel="urn:org.milyn.edi.unedifact:d01b-mapping:*" ignoreNewLines="false" ignoreEmptyNodes="false"/> </smooks-resource-list> calling using below java method try { smooks = new Smooks(new FileInputStream("conf/smooks-config.xml")); xmlFileName=ediFilewithPath.replace(".edi", ".xml"); smooks.filterSource(new StreamSource(new FileInputStream(ediFilewithPath)), new StreamResult(new FileOutputStream(xmlFileName))); return xmlFileName; } catch (IOException exception) { LOGGER.error(exception,exception); throw exception; } catch(SmooksException exception){ LOGGER.error(exception,exception); throw exception; } trying for EANCOM SLSRPT and using db01b mapping jar file. Please help me i am stuck over here. |
Free forum by Nabble | Edit this page |