Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Error message when you receive a MIME or SMIME document in BizTalk Server: "Item has already been added"


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You receive a MIME or Secure MIME (SMIME) document in Microsoft BizTalk Server 2006 or in Microsoft BizTalk Server 2006 R2 or in Microsoft BizTalk Server 2009.
  • The MIME or SMIME document contains two or more attachments that have the same name.
In this scenario, the document is suspended. Additionally, an error message that resembles the following is logged in the Application log:

Event Type: Error
Event Source: BizTalk Server 2006
Event Category:BizTalk Server 2006
Event ID: 5753
Description: A message received by adapter "<adapter>" on receive location "<receive location>" with URI "<URI>" is suspended.
Error details: Item has already been added.
Key in dictionary: '<name of the duplicate attachment>'
Key being added: '<name of the duplicate attachment>'
MessageID: {<Message ID>}
InstanceID: {<Instance ID>}

This problem may occur if one of the following conditions is true:
  • You use a Post Office Protocol 3 (POP3) adapter to retrieve data from a server that houses POP3.
  • You use a file adapter to receive the .eml files from a file location, and you use a pipeline that uses a MIME/SMIME decoder to process the incoming files.

↑ Back to the top


Cause

This problem occurs because of an error in the MIME/SMIME decoder component of BizTalk Server 2006 or of BizTalk Server 2006 R2 or of BizTalk Server 2009.

↑ Back to the top


Resolution

To resolve this problem,�apply the following hotfix. After you apply this hotfix, the MIME/SMIME decoder adds a sequence number and a GUID to the attachment name for MIME/SMIME documents that are received. Then, the attachment name is in the format of ORIGINALNAME-%n%%GUID%, where: %n% represents the attachment number.

Note Because the maximum size of the promoted property is 255 characters, the name may be truncated.

Cumulative update information

For BizTalk Server 2009

The hotfix that resolves this issue is included in cumulative update package 3 for BizTalk Server 2009.

For more information about how to obtain the cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
2557149 Cumulative update package 3 for BizTalk 2009

Hotfix information

For BizTalk Server 2006 and BizTalk Server 2006 R2 SP1


A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.


Prerequisites

You must have BizTalk Server 2006 or BizTalk Server 2006 R2 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix. However, you must stop all BizTalk host instances before you apply this hotfix to make sure that no open handles exist against the affected file. Additionally, you must restart all host instances after you apply the hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) 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 item in Control Panel.
Microsoft BizTalk Server 2006
File nameFile versionFile sizeDateTimePlatform
Btsmimecomps.dll3.5.1778.0153,43216-Apr-200919:50x86

Microsoft BizTalk Server 2006 R2
File nameFile versionFile sizeDateTimePlatform
Btsmimecomps.dll3.6.1523.2159,05616-Apr-200916:57x86
Microsoft.biztalk.edi.baseartifacts.dll3.6.1504.2777,08816-Apr-200916:57x86
Microsoft.biztalk.edi.ediintpipelines.dll3.6.1504.280,77616-Apr-200916:57x86
Microsoft.biztalk.edi.shared.dll3.6.1504.2162,67216-Apr-200916:57x86
Microsoft.biztalk.ediint.pipelinecomponents.dll3.6.1504.2129,93616-Apr-200916:57x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

This problem also occurs when the duplicate name is in different case in the "Content-Description" field. This field is in the MIME header of the MIME part. For example, this problem occurs when you receive a MIME message that contains the following three Content-Description fields in three MIME parts:
  • Content-Description: filename.txt
  • Content-Description: Filename.txt
  • Content-Description: FILENAME.TXT
For more information about the POP3 adapter, visit the following Microsoft Developer Network (MSDN) Web site:
For more information about MIME/SMIME Decoder pipeline component, visit the following Microsoft Developer Network (MSDN) Web site:

↑ Back to the top


Keywords: kbbtspipeline, kbbiztalk2006r2sp1fix, kbbiztalk2006presp1fix, kbado260fix, kbautohotfix, kbexpertiseinter, kbsurveynew, kbqfe, kbbiztalk2009presp1fix, KB937173

↑ Back to the top

Article Info
Article ID : 937173
Revision : 3
Created on : 8/1/2011
Published on : 8/1/2011
Exists online : False
Views : 597