KB Article #177333
IDOC Import error : com.axway.ms.binding.xml.serializer.XmlFormatterException
Problem
-- getting such error when trying to import an (apparently valid) IDOC v4 description
2015-08-17 15:24:42,582|INFO |ModalContext |idoc.transformer.EaiTransformer.transformFileToEAI:58 - File 'C:\Cases\784900\1\01IDocSchema-PORDCR103.txt' successfully transformed into
'C:/B2Bi21/Client/MappingServices/my_workspace/.tmp/convert_01IDocSchema-PORDCR103.txt'
2015-08-17 15:24:43,710|ERROR|main |ui.wizards.BdocImporterFileSelectionWizardPage.getNextPage:917 - com.axway.ms.binding.xml.serializer.XmlFormatterException: org.xml.sax.SAXParseException; lineNumber: 1728; columnNumber: 3; The element type "eai:DataRecord" must be terminated by the matching end-tag "</eai:DataRecord>".
com.axway.ms.dml.importer.importer.BdocImporterException: com.axway.ms.binding.xml.serializer.XmlFormatterException: org.xml.sax.SAXParseException; lineNumber: 1728; columnNumber: 3; The element type "eai:DataRecord" must be terminated by the matching end-tag "</eai:DataRecord>".
at com.axway.ms.dml.importer.idoc.ImporterIDocBusinessDocumentFactory.buildDocumentListWrapper(ImporterIDocBusinessDocumentFactory.java:79)
at com.axway.ms.dml.importer.idoc.ImporterIDocBusinessDocumentFactory.buildDocumentListWrapper(ImporterIDocBusinessDocumentFactory.java:1)
at com.axway.ms.dml.importer.importer.BusinessDocumentImporterUtility.getDocumentNames(BusinessDocumentImporterUtility.java:106)
at com.axway.ms.dml.importer.ui.wizards.BdocImporterFileSelectionWizardPage.doTransform(BdocImporterFileSelectionWizardPage.java:792)
at com.axway.ms.dml.importer.ui.wizards.BdocImporterFileSelectionWizardPage$8.run(BdocImporterFileSelectionWizardPage.java:875)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: com.axway.ms.binding.xml.serializer.XmlFormatterException: org.xml.sax.SAXParseException; lineNumber: 1728; columnNumber: 3; The element type "eai:DataRecord" must be terminated by the matching end-tag "</eai:DataRecord>".
at com.axway.ms.binding.xml.serializer.XmlFormatter.deserialize(XmlFormatter.java:1533)
at com.axway.ms.binding.xml.serializer.XmlFormatter.deserialize(XmlFormatter.java:945)
at com.axway.ms.binding.xml.serializer.XmlFormatter.deserialize(XmlFormatter.java:1681)
at com.axway.ms.binding.xml.serializer.XmlFormatter.deserialize(XmlFormatter.java:1603)
at com.axway.ms.dml.importer.idoc.ImporterIDocBusinessDocumentFactory.buildDocumentListWrapper(ImporterIDocBusinessDocumentFactory.java:75)
... 5 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 1728; columnNumber: 3; The element type "eai:DataRecord" must be terminated by the matching end-tag "</eai:DataRecord>".
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.axway.ms.binding.xml.serializer.XmlFormatter.deserialize(XmlFormatter.java:968)
... 9 more
Resolution
* the IDOC description file is invalid : the STATUS RECORD is missing and cause the import to crash
* add the segment
BEGIN_STATUS_RECORD
...
...
...
END_STATUS_RECORD
* the import should be successfull
* attached the orginal description and the modified descriptino files. The STATUS RECORD has been added from line 352 to line 546