In a previous project, I worked with EDI message to interchange with partners, but before I send the message to the partner I have the need to pass them through a loopback adaptor, that was configured with EDISend pipeline and EDIReceive Pipeline.
The objective is to get some proprieties, configured in the Party, that I need to proceed with the orchestration.
The send work well and create a correct EDI message, but on the receive, I was expecting an Edifact Interchange Message, I received back the message it gave me the following error:
“… Exception thrown from: segment -1, progress -1
Inner exception: Received unexpected message type ‘http://schemas.microsoft.com/BizTalk/EDI/EDIFACT/2006#EFACT_D01B_INVOIC_EAN010’ does not match expected type ‘http://schemas.microsoft.com/BizTalk/EDI/EDIFACT/2006/InterchangeXML#EdifactInterchangeXml’.
Exception type: UnexpectedMessageTypeException
Source: Microsoft.XLANGs.Engine …”
You have to configure the EDI pipeline to preserve the interchange.
In EDI Pipeline configuration:
- On EDI disassembler component
- Set the property “PreserveInterchange” to “True”