Problem with Edifact Interchange and loopback adapter Receive Pipeline – Received unexpected message type

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 ‘’ does not match expected type ‘’.

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”
EDI Pipeline proterties
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to Top