Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Troubleshoot Windows Azure BizTalk Services

Updated: November 21, 2013

When troubleshooting Windows Azure BizTalk Services, you can use Tracking in the Windows Azure BizTalk Services Portal and use the Debug logs stored in the Storage account. This topic provides information on using the Tracking and Debug logs.

Tracking

Every time the message sending client gets a response (whether it’s a failure or a success), the response header includes a tracking ID. Especially in cases where there is a failure, you can extract this tracking ID from the header and use the Tracking Messages feature in Windows Azure BizTalk Services Portal to troubleshoot. The following code snippet demonstrates how to extract the tracking ID from the response.

byte[] requestBytes; // message transferred to bytes.

Try
{
  WebClient webClient = new WebClient();                 
  UriBuilder builder = new UriBuilder(this.bridgeRuntimeAddress) { Scheme = Uri.UriSchemeHttps };

  // one can also use GetWebResponse instead of UploadData.
  byte[] responseBytes = webClient.UploadData(builder.Uri, "POST", requestBytes);
}

Catch (WebException we)
{
  Console.Writeline("Received WebException while sending message. Details: ");
  HttpWebResponse httpWebExceptionResponse = we.Response as HttpWebResponse;
  if (httpWebExceptionResponse == null)
  {
    Console.Writeline("WebException contains no Http exception response. Status = {0}", we.Status);
  }
  else
  {
    if (!String.IsNullOrEmpty(httpWebExceptionResponse.Headers["TrackingId"]))
    {
      Console.Writeline ("TrackingId={0}", httpWebExceptionResponse.Headers["TrackingId"]);
    }
    else
    {
      Console.Writeline ("Did not find TrackingId header on the WebException");
    }
    Console.Writeline ("StatusCode = {0} and StatusDescription = {1}", httpWebExceptionResponse.StatusCode, 
      httpWebExceptionResponse.StatusDescription);
  }
}

Debug Logs

During the development process, debug logs are available in the WADLogsTable in the Storage Account. To view these log files, you can use the following tools:

The debug log files include the following events:

  • Loading an assembly

  • Adding or updating an artifact, like a Transform

  • Adding, updating, or deleting Bridge Configuration

  • Message submitted to the Bridge pipeline

  • Bridge stages including their Begin Execute and End Execute events

  • Faults

See Also

© 2013 Microsoft Corporation. All rights reserved.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.