BizTalk Error Handling with Ordered Delivery

Posted on February 10, 2011 by Anthony Rotolo

When a message fails to send, it becomes suspended in a service instance. If ordered delivery is enabled, all subsequent messages will also become suspended and queued in that same service instance, even if they would not have failed otherwise. This is an issue because if you terminate the service instance, all the messages, even the good ones, will be terminated.

Steps to resume a service instance while ordered delivery is enabled

  1. Launch the BizTalk Server 2006/2009 Administration Console.
  2. Expand BizTalk Server 2006/2009 Administration node and select your BizTalk Group.image1 BizTalk Error Handling with Ordered Delivery
  3. In the Group Overview, select Suspended Service Instances under Suspended Items.image2 BizTalk Error Handling with Ordered Delivery
  4. Click Run Query list your suspended service instances.
  5. Right-click the suspended service instance you want to resume and select Service Details.image3 BizTalk Error Handling with Ordered Delivery
    1. Select the Error Information tab.image4 BizTalk Error Handling with Ordered Delivery
    2. Read the error description.
    3. If the error was caused by an issue that can be resolved, attempt to resolve the issue.
    4. Click Cancel to close the Service Details window.
  6. Optional: Right-click the service instance and select Show Messages.image5 BizTalk Error Handling with Ordered Delivery
    1. The suspended messages within this service instance are listed.image6 BizTalk Error Handling with Ordered Delivery
    2. Click the Suspended tab.
  7. Right-click the service instance and select Resume Instance.image7 BizTalk Error Handling with Ordered Delivery
    • You will be prompted to confirm this operation, select Yes.
  8. Select the Group Hub tab.
    • Select Running service instances under Work in Progress.image8 BizTalk Error Handling with Ordered Delivery
  9. Click Run Query.
    • Look for your service instance in the results.
      1. If you see your service instance displayed in the list and its Status is Dehydrated, wait for the messages to finish retrying. When they are finished, your service instance will no longer be displayed in the results.
      2. If you don’t see your service instance in the results, or its Status is not Dehydrated, then check the Event Viewer Application Log for any issues. If none are found, check to see if your messages were successfully sent. If your messages were successfully sent, the service instance was resumed successfully and you are done.image9 BizTalk Error Handling with Ordered Delivery
  10. Select the Suspended tab.
    1. Click Run Query.
    2. Right-click the service instance.
      1. Select Find Failed Message.image10 BizTalk Error Handling with Ordered Delivery
      2. We are going to delete this message, so you may want to store any available message information so that it can be resubmitted when the issue is resolved.
      3. Right-click the listed message.
      4. Select Delete Message.image11 BizTalk Error Handling with Ordered Delivery
      5. You will be prompted to confirm the deletion, select Yes.
  11. Select the Suspended tab.
  12. Right-click the service instance and select Resume Instance.
  13. Repeat from step 8 until all the failed messages are deleted and the good messages can be resumed.
« Back to Blog main page