when you try to reconfigure the BizTalk Server 2006 R2 EDI/AS2 Runtime feature

SYMPTOMS

In Microsoft BizTalk Server 2006 R2, the EDI/AS2 Runtime feature configuration may fail. When this problem occurs, you receive an error message that resembles the following error message:

Error:
[12:09:24 PM Error EDIAS2Config] Failed to configure EDI/AS2 Status Reporting functionalities. (Microsoft.BizTalk.Configuration.EDIAS2.StatusReportingHelper)
Failed to deploy BAM activity definitions. Please make sure that all BAM related Data Transformation Services (DTS) packages are removed along with the BAM databases. (Microsoft.BizTalk.Configuration.EDIAS2.Utility)
Failed to execute process: C:\Program Files (x86)\Microsoft BizTalk Server 2006\Tracking\bm.exe. (Microsoft.BizTalk.Configuration.EDIAS2.Utility)
Microsoft (R) Business Activity Monitoring Utility Version 3.6.1230.0
Copyright (C) 2006 Microsoft Corporation. All rights reserved.
Using 'BAMPrimaryImport' BAM Primary Import database on server ‘SQL Server Name'...
Deploying Activity... ERROR: The BAM deployment failed.
DTS package BAM_DM_InterchangeStatusActivity already exists on server SQL Server Name.
(Microsoft.BizTalk.Configuration.EDIAS2.Utility)

CAUSE

The EDI/AS2 Runtime feature in BizTalk Server uses Microsoft SQL Server 2005 Integration Services (SSIS). This problem occurs if the EDI/AS2 Data Transformation Services (DTS) packages are not removed after you unconfigure the EDI/AS2 Runtime feature. Therefore, when you try to reconfigure BizTalk Server, the configuration process of the EDI/AS2 status reporting feature fails. Then, you receive the error message that is mentioned in the "Symptoms" section.

RESOLUTION

Method 1: Use SQL Server Management Studio to remove the DTS packages

To resolve this problem, use SQL Server Management Studio to remove the DTS packages. To do this, follow these steps:
  1. Start SQL Server Management Studio, click Connect, and then select Integration Services.
  2. In the Server type box, click Integration Services, enter the server name that you want in the Server name box, and then click Connect.
  3. Expand Stored Packages, and then expand MSDB.
  4. Right-click BAM_DM_InterchangeStatusActivity, click Delete, and then click Yes.
  5. Repeat step 4 for the following packages:
    • BAM_DM_AS2InterchangeActivity
    • BAM_DM_AS2MessageActivity
    • BAM_DM_AS2MdnActivity
  6. Try to configure the BizTalk Server EDI/AS2 Runtime feature again.

Method 2: Use the Bm.exe utility to remove the DTS packages

To resolve this problem, use the Bm.exe utility to remove the DTS packages. To do this, follow these steps:
  1. Click Start, click Run, type cmd, and then click OK.
  2. Use the CD command to locate the folder where the Bm.exe file is located.

    Note By default, the Bm.exe file is located in the following folder:

    Microsoft BizTalk Server 2006\Tracking
  3. At the command prompt, type the following command, and then press ENTER:
    Bm.exe remove-all -DefinitionFile:folder\AS2ReportingActivityDefs.xml
    Note The folder placeholder is the folder where BizTalk Server 2006 R2 is installed.

    If you receive an error message that an activity could not be removed, go to step 4.

  4. At the command prompt, type the following command, and then press ENTER:
    Bm.exe remove-all -DefinitionFile:folder\EdiReportingActivityDefs.xml
    Note The folder placeholder represents the folder where BizTalk Server 2006 R2 is installed.
  5. Try to configure the BizTalk Server EDI/AS2 Runtime feature again.
原文地址:https://www.cnblogs.com/JasonLiao/p/1893787.html