Get Failed Message Error in orchestration RRS feed

  • Question

  • Hi,

    I enable routing for failed message in receive port and create a send port with a fiter ErrorReport.ReceivePortName and getting the message in send side on a particular location A.

    Now I created a orchestration which pick up the message from location A. Now I want to know the error description for failed message in this orchestration.I write the below code in expression shape after getting the input message(MessageIn is XmlDocument type):

    But I got the xlang error:

    Please help ! How can we handle this situation ?


    • Edited by Shivay_ Sunday, December 25, 2016 11:10 AM
    Sunday, December 25, 2016 11:09 AM


  • Hi Shivay

    The problem is that you are routing the error message to the SendPort. You have to directly subscribe to the failed message in the orchestration.

    Once the SendPort writes the message to a file location, all of the context properties are lost - it is a new message that is submitted to BizTalk.

    What you have to do instead-

    On the Receive Shape of your orchestration setup a Filter on ErrorReport.ReceivePortName, like-

    ErrorReport.ReceivePortName = "YourReceivePort"

    Thanks Arindam

    Sunday, December 25, 2016 2:07 PM