Geeks With Blogs

News
Stuart Brierley Integration Management - BizTalk and More

On the project I am currently working on, we are making quite extensive use of BAM within our growing number of BizTalk applications, all of which are being deployed and undeployed using the excellent Deployment Framework for BizTalk 5.0.

Recently I had an issue where problems on the build server had left the target development servers in a state where the BAM activities and views for a particular application were not being removed by the undeploy process and unfortunately the definition in the solution had changed meaning that I could not easily recreate the file from source control. 

To get around this I used the bm.exe application from the command line to manually remove the problem BAM artifacts - bm.exe can be found at the following path:

C:\Program Files (x86)\Microsoft BizTalk Server 2010\Tracking

Step1 :Get the BAM Definition File

Run the following command to get the BAm definition file, containing the details of all the activities, views and alerts:

bm.exe get-defxml -FileName:{Path and File Name Here}.xml

Step 2: Remove the BAM Artifacts

At this stage I chose to manually remove each of my problem BAM activities and views using seperate command line calls.  By looking in the definition file I could see the names of the activities and views that I wanted to remove and then use the following commands to remove first the views and then the activities:

bm.exe remove-view -name:{viewname}

bm.exe remove-activity -name:{activityname}

Posted on Wednesday, October 16, 2013 2:40 PM | Back to top


Comments on this post: BizTalk - Removing BAM Activities and Views using bm.exe

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Stuart Brierley | Powered by: GeeksWithBlogs.net