KB Article #160207
[XML - 0]: Unexpected element (XML file that contains namespaces is rejected by Integrator)
Problem
When Integrator process an XML file that contains namespaces, it is rejected by Integrator even though it fits with the Input Business Document (generated in Composer when imported .xsd schemes)
The file was validated with Altova XML Validator and the error in Integrator is like the one below:
ERROR yyyymmdd hh.mm.ss.ms procengine(procengine(dmlmap.dll))
[XML - 0]: Unexpected element 'xxxxxxxxxxxxx' encountered. In sequence='yyyyyyy[1]/zzzzz[1]'. Document line xx position xx.
Resolution
Detected that even the Input Business Document fits with the xsd, Integrator cannot parse the file due to the namspaces in the file.
To solve the issue:
1/ Compile using c4edi the s4 file attached to KB (on that machine where Integator is installed!) => you will have an x4 file.
2/ Put the x4 in a location on the disk (preferable in $CORE_LOCAL)
3/ Register the MBC via Copilot => Component Registry
4/ Inset a Sequential activity & select a GenericCreatorStage, like in the prinscreen attached, just AFTER the Receive Activity (before mappings processing)
5/ After that, in the IT please select for the GenericCreatorStage the MBC already registered in Copilot
6/ All tests will go smoothly for now on