Must receive before sending a message whose messagetype corresponds to a requestresponse operation on an implemented port

Home Page Forums BizTalk 2004 – BizTalk 2010 Must receive before sending a message whose messagetype corresponds to a requestresponse operation on an implemented port

Viewing 1 reply thread
  • Author
    Posts
    • #18843

      Hi all,

      I’m having a problem with my orchestration. I have request-response port that receives a message, than a scope starts, in which some things are done with the message and finally the message is being sent back to the same port. There’s also an exception handler for the scope, in which another message is sent to the request-response port, indicating that there was an error.

      When I compile this orchestration, I get this error:
      Must receive before sending a message whose messagetype corresponds to a requestreponse operation on an implemented port

      Anyone knows what the problem is?

      THX!
      Christophe

    • #20246

       This is caused by the compiler not being able to ascertain whether a message has been sent back to the receive/response port in the exception handler. If the original send response worked you cannot send another message (the error response/fault) to the request response port.

      http://thearchhacker.blogspot.com/2004/08/multiple-activate-receives-and.html

      http://www.traceofthought.net/PermaLink,guid,abdd6ca2-e964-437d-8bee-0188ec5b5afa.aspx

      I prefer wrapping the original send in an atomic scope and checking !succeeded inside the exception handler

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.