Microsoft KB Archive/816772

= FIX: Job May Be Terminated if There Are Bad Messages in the Queue =

Article ID: 816772

Article Last Modified on 11/15/2007

-

APPLIES TO


 * Microsoft BizTalk Adapter for MQSeries

-



SYMPTOMS
If there are bad messages (such as messages that are not formatted correctly) in the queue on the computer running IBM MQSeries Server, the read operation of the BizTalk Server Adapter for MQSeries fails and you receive an error HR code. However, these bad messages are still in the queue. Therefore, the next read operation also fails and you receive the previous error HR code again. This problem continues until the FailureThreshold value is reached, and then the worker thread (Job) is terminated. In this scenario, two bad messages can disable the worker thread (Job).

When the message format is bad, BizTalk Server Adapter for MQSeries logs the following error several times, and then the worker thread is terminated: Reason code 2110 is MQRC_FORMAT_ERROR.

A worker thread reported a failure: MQSeries: An error occurred in Microsoft BizTalk Adapter for MQSeries. The MQSeries reason code is 2110. Please refer to MQSeries documents for more information on this error.

The error code is stored in Data.

The operation was: IWorker3->Work

The worker thread was working on:

Machine:

Queue Manager: RETURN

Transmission Queue: XMIT_RETURN



RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that this article describes. Apply this hotfix only to systems that are experiencing this specific problem.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version    Size    File name ---  01-Apr-2003  16:31  1.0.45.10   27,648  Aicmq.dll 01-Apr-2003 16:31  1.6.1.1     51,200  Lkrhash.dll 01-Apr-2003 16:31  1.0.45.10  172,544  Mmcmqs.dll 01-Apr-2003 16:31  1.0.45.10   27,648  Mqadaptersetuplibrary.dll 01-Apr-2003 16:31  1.0.45.10   70,144  Mqhelper.dll 01-Apr-2003 16:31  1.0.45.10    7,680  Mqhelperps.dll 01-Apr-2003 16:31  1.0.45.10   58,880  Mtbworker.dll 01-Apr-2003 16:31  1.0.45.10   20,480  Svcevent.dll 01-Apr-2003 16:31  1.0.45.10   33,792  Mtbsvc.exe 15-Mar-2003 01:01             145,392  Mmcmqs.chm 20-Nov-2002 21:19             236,544  Mmcmqs.msc 20-Nov-2002 21:19               1,294  Aicmq_mqpipeline_1.asp 20-Nov-2002 21:19               1,248  Aicmq_mqpipeline_1_post.asp NOTE: Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files. After you apply this hotfix, BizTalk Server Adapter for MQSeries moves unreadable messages to a dead letter queue, and then continues to process good messages.

Install Instructions
Note You must apply this hotfix to an installation of BizTalk Server Adapter for MQSeries that does not have any other hotfixes applied to it. If you have applied earlier hotfixes, you must first roll back to the original version of the application to remove the earlier hotfixes.  Stop the BizTalk Adapter for MQSeries service. In Component Services, remove the MQHelper COM component from the BizTalk Adapter for MQSeries COM+ application. Install the Btsmqs_q816772.exe fix. You receive a prompt to restart the server. Add MQHelper COM+ components to the BizTalk Adapter for MQSeries COM+ application by using the new binary file (C:\Program Files\Microsoft BizTalk Adapter for MQSeries\Mqhelper.dll). Verify that the Transaction property is set to Required and the Concurrency property is set to Required. Replace the original version Active Server Pages (ASP) pages that are located in the BizTalk folder (C:\Program Files\Microsoft BizTalk Server\MessagingManager\Pipeline) with the ASP pages that are located in the .zip file (Aicmq_mqpipeline_1.asp and Aicmq_mqpipeline_1_post.asp). Add the registry DWORD value UseDeadLetterQueue under the following registry key:

Set the value of UseDeadLetterQueue to 1. Create a local queue on the computer running MQSeries Server. Specify this queue as the dead letter queue for the queue manager. You can do this on the Extended tab of Properties for the queue manager.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
This hotfix is a cumulative package that includes the fixes that are described in the following Microsoft Knowledge Base articles:

316405 FIX: You Cannot Send Messages from MQSeries to BizTalk on a Computer Running the Chinese-Language Version of Windows 2000

320726 Implement Custom Post-Processor to Add Header Properties in AIC

320738 FIX: BizTalk Adapter for MQSeries Service Requires an Administrator Account

324529 Parameters for Polling Interval and Threshold After Failure

325165 Implement a Custom Preprocessor to Read Header Properties

331136 FIX: Support for Message Formats in Addition to MQFMT_STRING

Keywords: kbhotfixserver kbqfe kbqfe kbfix kbbug KB816772

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.