This project has moved and is read-only. For the latest updates, please go here.

Error deploying BizTalk project with more than 1 BAM Definition Excel File

Topics: General Questions, Getting Started/Beginner
May 15, 2011 at 3:08 PM

Hi Thomas,

I am facing issue while deploying BizTalk project with more than 1 BAM Definition Excel File. 
I am using the latest Version 5.0 RC2 version. Requet yo uto kindly assist.

I have mentioned below 3 scenarios so as to assist in knowing my exact issue.

SCENARIO 1: Deploying BizTalk Application having single BAM Definition Excel files (This works fine)

    <BamDefinitions Include ="$(ProjectName).BAM.xls">
    <LocationPath>..\$(ProjectName).BAM\</LocationPath>
   </BamDefinitions>

 

Relevant BTDF Deployment Execution

ExportBAMXMLFromXLS:

"C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xls" "..\SampleDeployment.BAM\\SampleDeployment.BAM.xml"

BizTalk BAM Definition XML Exporter 2.1.0

[http://GenerateTypedBamApi.codeplex.com/]

Copyright (C) 2007-08 Darren Jefford and 2008-10 Thomas F. Abraham 

Exporting BAM XML Definition from the Excel Spreadsheet... Success
Wrote BAM XML to '..\SampleDeployment.BAM\\SampleDeployment.BAM.xml'.

UndeployBam:
Undeploying BAM tracking profiles...
"C:\Program Files\Microsoft BizTalk Server 2010\Tracking\BttDeploy.exe" /remove "..\SampleDeployment.BAM\\SampleDeployment.BAM.btt"

Failed to remove the tracking profile.
The tracking profile for Activity Definition SampleDeploymentActivity is not applied.

MSBUILD : warning MSB3073: The command ""C:\Program Files\Microsoft BizTalk Server 2010\Tracking\BttDeploy.exe" /remove "..\SampleDeployment.BAM\\SampleDeployment.BAM.btt"" exited with code 1. [C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj]
The previous error was converted to a warning because the task was called with ContinueOnError=true.

Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
Finished undeploying BAM tracking profiles.

Undeploying BAM definition...

"C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" remove-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml"

Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
Copyright (C) Microsoft Corporation. All rights reserved.

Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
Removing Security... Done.
Removing View... Done.
Removing Activity... Done.
Finished undeploying BAM definition.

DeployBam:
Deploying BAM definition...
"C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" update-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml"

Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
Copyright (C) Microsoft Corporation. All rights reserved.

Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
Updating Activity... Done.
Updating View... Done.
Updating Security... Done.

Clearing file attributes for 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml'.
Copying file from "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml" to "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml".

copy /y "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml"

Finished deploying BAM definition.
Deploying BAM security...
Finished deploying BAM security.

SCENARIO 2: Deploying BizTalk Application having multiple BAM Definition Excel files

   <BamDefinitions Include ="$(ProjectName).BAM.xls">
     <LocationPath>..\$(ProjectName).BAM\</LocationPath>
   </BamDefinitions> 
   <BamDefinitions Include ="$(ProjectName).BAM2.xls">
     <LocationPath>..\$(ProjectName).BAM\</LocationPath>
   </BamDefinitions>

 Relevant BTDF Deployment Execution

ExportBAMXMLFromXLS:
"C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xls" "..\SampleDeployment.BAM\\SampleDeployment.BAM.xml;..\SampleDeployment.BAM\\SampleDeployment.BAM2.xml"

BizTalk BAM Definition XML Exporter 2.1.0
[http://GenerateTypedBamApi.codeplex.com/]
Copyright (C) 2007-08 Darren Jefford and 2008-10 Thomas F. Abraham

Exporting BAM XML Definition from the Excel Spreadsheet... Failed

Could not find a part of the path 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml;\SampleDeployment.BAM\SampleDeployment.BAM2.xml'.

C:\Program Files\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1785,5): error MSB3073: The command ""C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xls" "..\SampleDeployment.BAM\\SampleDeployment.BAM.xml;..\SampleDeployment.BAM\\SampleDeployment.BAM2.xml"" exited with code -1. [C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj]

Done Building Project "C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj" (Deploy target(s)) -- FAILED.

Build FAILED.

SCENARIO 3: Deploying BizTalk Application having multiple BAM Definition Excel files (with updated fixed path)

In scenario 2 above,I thought that may be the extra backslashes “\\” is causing the problem.
But if that would been so , it should have failed in Scenario 1 as well.
Still, I tried deploying once again, by removing the ‘\’ from the location path but still getting similar error as that in Scenario 2. The errors in Scneario 2 and Scneario 3 show that the BTDF doesn’t pick the BAM2.xls file. Please assist.

    <BamDefinitions Include ="$(ProjectName).BAM.xls">
     <LocationPath>..\$(ProjectName).BAM</LocationPath>
   </BamDefinitions> 
   <BamDefinitions Include ="$(ProjectName).BAM2.xls">
     <LocationPath>..\$(ProjectName).BAM</LocationPath>
   </BamDefinitions>

 

Relevant BTDF Deployment Execution

ExportBAMXMLFromXLS:

"C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xls" "..\SampleDeployment.BAM\SampleDeployment.BAM.xml;..\SampleDeployment.BAM\SampleDeployment.BAM2.xml"

BizTalk BAM Definition XML Exporter 2.1.0
[http://GenerateTypedBamApi.codeplex.com/]
Copyright (C) 2007-08 Darren Jefford and 2008-10 Thomas F. Abraham

Exporting BAM XML Definition from the Excel Spreadsheet... Failed
Could not find a part of the path 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml;\SampleDeployment.BAM\SampleDeployment.BAM2.xml'.

C:\Program Files\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1858,5): error MSB3073: The command ""C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xls" "..\SampleDeployment.BAM\SampleDeployment.BAM.xml;..\SampleDeployment.BAM\SampleDeployment.BAM2.xml"" exited with code -1. [C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj]

Done Building Project "C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj" (Deploy target(s)) -- FAILED.

Build FAILED.

 

Thanks,
Avinandan

 

May 16, 2011 at 7:22 AM

Hi Avinandan,

Please try inserting this into your .btdfproj to override the default implementation (I believe it needs to go after the <Import> line):

  <Target Name="ExportBAMXMLFromXLS" Condition="'$(IncludeBAM)' == 'true' and '$(Configuration)' != 'Server'">
    <Exec Command="&quot;$(DeployTools)\ExportBamDefinitionXml.exe&quot; &quot;%(BamDefinitionsQualified.FullPath)&quot; &quot;@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename).xml')&quot;" />
  </Target>

Please let me know if that works or not.

Thanks,
Tom

May 16, 2011 at 12:09 PM
Edited May 16, 2011 at 12:18 PM

Hi Tom,

Thanks for the quick response. After adding the target node mentioned above, the deploy execution has progressed further
(extracted the xml files properly) from the time at which errors were occurring in Scenario 2 and 3.
However it is not able to deploy the extracted xmls.

I forgot to add that all these scenarios are based on Visual Studio Deploy only (but I guess you have already figured that out).
Kindly advise.

Relevant BTDF Deployment Execution

ExportBAMXMLFromXLS:

"C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xls" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml"

BizTalk BAM Definition XML Exporter 2.1.0
[http://GenerateTypedBamApi.codeplex.com/]
Copyright (C) 2007-08 Darren Jefford and 2008-10 Thomas F. Abraham

Exporting BAM XML Definition from the Excel Spreadsheet... Success
Wrote BAM XML to 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml'.

"C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xls" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"

BizTalk BAM Definition XML Exporter 2.1.0
[http://GenerateTypedBamApi.codeplex.com/]
Copyright (C) 2007-08 Darren Jefford and 2008-10 Thomas F. Abraham

Exporting BAM XML Definition from the Excel Spreadsheet... Success
Wrote BAM XML to 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml'.

UndeployBam:
Undeploying BAM tracking profiles...
"C:\Program Files\Microsoft BizTalk Server 2010\Tracking\BttDeploy.exe" /remove "..\SampleDeployment.BAM\\SampleDeployment.BAM.btt"
Failed to remove the tracking profile.

There is no activity in the database BAMPrimaryImport that matches the activity SampleDeploymentActivity in the tracking profile.

MSBUILD : warning MSB3073: The command ""C:\Program Files\Microsoft BizTalk Server 2010\Tracking\BttDeploy.exe" /remove "..\SampleDeployment.BAM\\SampleDeployment.BAM.btt"" exited with code 1. [C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj]
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
Finished undeploying BAM tracking profiles.

Undeploying BAM definition...
"C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" remove-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml"

Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
Copyright (C) Microsoft Corporation. All rights reserved.

Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
Removing Security... Done.
Removing View... Done.
Removing Activity... Done.

"C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" remove-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"

Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
Copyright (C) Microsoft Corporation. All rights reserved. 

Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
Removing Security... Done.
Removing View... Done.
Removing Activity... Done.

Finished undeploying BAM definition.

DeployBam:
Deploying BAM definition...
"C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" update-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml;C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"

Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
Copyright (C) Microsoft Corporation. All rights reserved.

Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
ERROR: Cannot read from file - 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml;C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml'.

bm.exe update-all
         -DefinitionFile:<def file>
         [ -Server:<server> ]
         [ -Database:<database> ]

Updates certain artifacts from the BAM definition XML. The file can be a text file containing the BAM definition XML or a BAM Excel workbook.
The update does not delete artifacts that are not described in the current definition file. It can add new checkpoints to activities, but cannot
drop checkpoints from deployed activities. The update can neither rename checkpoints nor change checkpoint properties.

- EXAMPLES -
bm.exe update-all -DefinitionFile:MyDef.xml
bm.exe update-all -DefinitionFile:MyWorkbook.xls -Server:machine1

C:\Program Files\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1798,5): error MSB3073: The command ""C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" update-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml;C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"" exited with code 1. [C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj]

Done Building Project "C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj" (Deploy target(s)) -- FAILED.

Build FAILED.

"C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj" (Deploy target) (1) ->
(UndeployBam target) ->
MSBUILD : warning MSB3073: The command ""C:\Program Files\Microsoft BizTalk Server 2010\Tracking\BttDeploy.exe" /remove "..\SampleDeployment.BAM\\SampleDeployment.BAM.btt"" exited with code 1.
[C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj]

"C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj" (Deploy target) (1) ->
(DeployBam target) ->
C:\Program Files\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1798,5): error MSB3073: The command ""C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" update-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml;C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"" exited with code 1. [C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj] 

   1 Warning(s)
   1 Error(s)

Time Elapsed 00:01:21.17

 

May 16, 2011 at 4:10 PM

I'm afraid there's no clean way around this until it's fixed in a future release.  Please try also adding these targets to your .btdfproj (overriding the defaults).  I have not been able to test them, so hopefully they are correct.

  <Target Name="DeployBam" DependsOnTargets="ExportBAMXMLFromXLS;UndeployBam" Condition="'$(IncludeBAM)' == 'true'">
    <!-- Deploy BAM definitions. -->

    <!-- First, deploy the BAM definitions -->
    <Message Text="Deploying BAM definition..." />
    <Exec
       Command="&quot;$(BtsDir)Tracking\bm.exe&quot; update-all -DefinitionFile:&quot;@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename).xml')&quot;"
       Condition="'%(Identity)' == '%(Identity)'" />
    <!--
      Make a copy of the BAM definition XML as [filename]_LastAutoDeploy.xml. Next time we undeploy, we'll look
      for that file first in case the definition file no longer matches what is deployed. If there is a mismatch,
      bm.exe won't auto-undeploy the model.
    -->
    <MakeFilesWriteable
      InputFiles="@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename)_LastAutoDeploy.xml')"
      Condition="Exists(@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename)_LastAutoDeploy.xml')) and '%(Identity)' == '%(Identity)'" />
    <Copy
      SourceFiles="@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename).xml')"
      DestinationFiles="@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename)_LastAutoDeploy.xml')" />
    <Message Text="Finished deploying BAM definition." />

    <Message Text="Deploying BAM security..." />
    <!-- Next, apply permissions to the BAM views -->
    <!-- View names and associated accounts must be defined in a property called BAMViewsAndAccounts -->
    <!-- The format of the value of the BAMViewsAndAccounts property must be: -->
    <!-- ViewName1:DOMAIN\GroupName1,DOMAIN\UserName1;ViewName2:BUILTIN\Administrators,COMPUTERNAME\UserName2;<etc. etc.> -->
    <!-- This is easily pulled from the settings spreadsheet by including BAMViewsAndAccounts in the PropsFromEnvSettings ItemGroup. -->
    <ItemGroupFromSeparatedList SeparatedList="$(BAMViewsAndAccounts)" FormatString="{0}" Separator=";" ReverseList="false" ListItemRegex="(?'viewName'\w+)\s*:\s*(?'groupNames'[\w\s\\,]+)$"
                                Condition="'$(BAMViewsAndAccounts)' != ''">
      <Output TaskParameter="ItemGroup" ItemName="BAMViewsAndAccountsGroup" />
    </ItemGroupFromSeparatedList>

    <Exec
     Command="&quot;$(BtsDir)Tracking\bm.exe&quot; add-account -View:&quot;%(BAMViewsAndAccountsGroup.viewName)&quot; -AccountName:&quot;%(BAMViewsAndAccountsGroup.groupNames)&quot;"
     ContinueOnError="true"
     Condition="'$(BAMViewsAndAccounts)' != ''"/>
    <Message Text="Finished deploying BAM security." />

    <Message Text="Deploying BAM tracking profiles..." Condition="'@(BamTrackingProfilesQualified)' != ''" />
    <Exec
      Command="&quot;$(BtsDir)Tracking\BttDeploy.exe&quot; &quot;@(BamTrackingProfilesQualified)&quot;"
      Condition="'%(Identity)' == '%(Identity)' and '@(BamTrackingProfilesQualified)' != ''" />
    <Message Text="Finished deploying BAM tracking profiles." Condition="'@(BamTrackingProfilesQualified)' != ''" />
  </Target>

  <Target Name="UndeployBam" DependsOnTargets="ExportBAMXMLFromXLS" Condition="'$(IncludeBAM)' == 'true' and ('$(SkipUndeploy)' == 'false' and '$(SkipBamUndeploy)' == 'false')">
    <!-- Undeploy BAM definitions. -->

    <Message Text="Undeploying BAM tracking profiles..." Condition="'@(BamTrackingProfilesQualified)' != ''" />
    <Exec
      Command="&quot;$(BtsDir)Tracking\BttDeploy.exe&quot; /remove &quot;@(BamTrackingProfilesQualified)&quot;"
      Condition="'%(Identity)' == '%(Identity)' and '@(BamTrackingProfilesQualified)' != ''"
      ContinueOnError="true" />
    <Message Text="Finished undeploying BAM tracking profiles." Condition="'@(BamTrackingProfilesQualified)' != ''" />

    <Message Text="Undeploying BAM definition..." />
    <Exec
       Command="&quot;$(BtsDir)Tracking\bm.exe&quot; remove-all -DefinitionFile:&quot;@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename)_LastAutoDeploy.xml')&quot;"
       Condition="Exists('%(RootDir)%(Directory)%(Filename)_LastAutoDeploy.xml') and '%(Identity)' == '%(Identity)'" />
    <Exec
       Command="&quot;$(BtsDir)Tracking\bm.exe&quot; remove-all -DefinitionFile:&quot;@(BamDefinitionsQualified->'%(RootDir)%(Directory)%(Filename).xml')&quot;"
       Condition="!Exists('%(RootDir)%(Directory)%(Filename)_LastAutoDeploy.xml') and '%(Identity)' == '%(Identity)'" />
    <Message Text="Finished undeploying BAM definition." />
  </Target>

Thanks,
Tom

May 17, 2011 at 1:47 PM

Thanks for the above resolution Tom !! It worked like a charm this time.


Relevant BTDF Deployment Execution

ExportBAMXMLFromXLS:
  "C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xls" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml"
  BizTalk BAM Definition XML Exporter 2.1.0
  [http://GenerateTypedBamApi.codeplex.com/]
  Copyright (C) 2007-08 Darren Jefford and 2008-10 Thomas F. Abraham
 
  Exporting BAM XML Definition from the Excel Spreadsheet... Success
 
  Wrote BAM XML to 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml'.
  "C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\ExportBamDefinitionXml.exe" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xls" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"
  BizTalk BAM Definition XML Exporter 2.1.0
  [http://GenerateTypedBamApi.codeplex.com/]
  Copyright (C) 2007-08 Darren Jefford and 2008-10 Thomas F. Abraham
 
  Exporting BAM XML Definition from the Excel Spreadsheet... Success
 
  Wrote BAM XML to 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml'.
UndeployBam:
  Undeploying BAM tracking profiles...
  "C:\Program Files\Microsoft BizTalk Server 2010\Tracking\BttDeploy.exe" /remove "..\SampleDeployment.BAM\\SampleDeployment.BAM.btt"
  Failed to remove the tracking profile.
  There is no activity in the database BAMPrimaryImport that matches the activity SampleDeploymentActivity in the tracking profile.
 
MSBUILD : warning MSB3073: The command ""C:\Program Files\Microsoft BizTalk Server 2010\Tracking\BttDeploy.exe" /remove "..\SampleDeployment.BAM\\SampleDeployment.BAM.btt"" exited with code 1. [C:\Avinandan\SampleDeployment\Deployment\Deployment.btdfproj]
  The previous error was converted to a warning because the task was called with ContinueOnError=true.
  Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
  Finished undeploying BAM tracking profiles.
  Undeploying BAM definition...
  "C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" remove-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml"
  Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
  Copyright (C) Microsoft Corporation. All rights reserved.
 
  Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
 
  Removing Security... Done.
  Removing View... Done.
  Removing Activity... Done.
  "C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" remove-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"
  Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
  Copyright (C) Microsoft Corporation. All rights reserved.
 
  Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
  
  Removing Security... Done.
  Removing View... Done.
  Removing Activity... Done.
  Finished undeploying BAM definition.
DeployBam:
  Deploying BAM definition...
  "C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" update-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml"
  Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
  Copyright (C) Microsoft Corporation. All rights reserved.
 
  Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
 
  Updating Activity... Done.
  Updating View... Done.
  Updating Security... Done.
  "C:\Program Files\Microsoft BizTalk Server 2010\Tracking\bm.exe" update-all -DefinitionFile:"C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml"
  Microsoft (R) Business Activity Monitoring Utility Version 3.9.469.0
  Copyright (C) Microsoft Corporation. All rights reserved.
 
  Using 'BAMPrimaryImport' BAM Primary Import database on server 'LSNODB006'...
  
  Updating Activity... Done.
  Updating View... Done.
  Updating Security... Done.
  Clearing file attributes for 'C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml'.
  Copying file from "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml" to "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml".
  copy /y "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM.xml" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM_LastAutoDeploy.xml"
  Copying file from "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml" to "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2_LastAutoDeploy.xml".
  copy /y "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2.xml" "C:\Avinandan\SampleDeployment\SampleDeployment.BAM\SampleDeployment.BAM2_LastAutoDeploy.xml"
  Finished deploying BAM definition.
  Deploying BAM security...
  Finished deploying BAM security.


 

Just to add the undeploying also works fine.
However I would request you to kindly consider this fix in a future release.

Thanks again!!
Avinandan

May 17, 2011 at 3:48 PM

OK, great.  I'll have this on the list to fix before 5.0 final.

Thanks,
Tom

Apr 13, 2012 at 3:24 PM

Hi Tom,

  Has this been fixed now in BTDF 5.0 latest version ?

Thanks,

Vivek

 

Apr 13, 2012 at 3:39 PM

Just realised this has not been fixed yet, but the above workaround works fine !

Jul 27, 2012 at 5:48 AM

This is fixed in V5.0 (Final).