BRE Deployment Issues

Topics: General Questions
Apr 14, 2011 at 10:24 AM

Hi Tom,

 A little confused over using the BRE Policy and Vocab elements within BDF.

 I get the following error when I run a deployment from within VS.

UndeployVocabAndRules:

Populating metadata in ItemGroup from policy/vocabulary files content...

   Working on '..\HGL.Integration.Common.BRE\Vocab\CI.DynamicRunTimeChecks.1.0.xml'...

     Added item [PolicyName:'CI.DynamicRuntimeChecks'; PolicyVersion:'1.0']

Finished populating metadata in ItemGroup from policy/vocabulary files content.

Populating metadata in ItemGroup from policy/vocabulary files content...

   Working on '..\HGL.Integration.Common.BRE\Policy\CI.Resolve.DynamicMaps.1.0.xml'...

    Added item [PolicyName:'CI.Resolve.DynamicMaps'; PolicyVersion:'1.0']

Finished populating metadata in ItemGroup from policy/vocabulary files content.

BizTalk Rules Engine Policy/Vocabulary Deployment Tool v1.1.0.0

Copyright (C) 2005-2010 Scott Colestock, Thomas F. Abraham

 Unpublishing vocabulary 'CI.DynamicRuntimeChecks' version 1.0...

Failed: Microsoft.RuleEngine.RuleStoreVocabularyInUseException: Unable to delete vocabulary "CI.DynamicRuntimeChecks", version 1.0 as it is used by other rulesets and/or vocabularies.

     at Microsoft.RuleEngine.SqlRuleStore.RemoveFromDB(SqlConnection connection, VocabularyInfo vocabulary, SqlTransaction tx)

     at Microsoft.RuleEngine.SqlRuleStore.Remove(VocabularyInfo vocabulary)

     at DeployBTRules.DeployRules.ProcessVocabularies(DeployRulesCommandLine cl, RuleSetDeploymentDriver dd)

     at DeployBTRules.DeployRules.Main(String[] args)

 C:\Program Files\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1593,5): error MSB3073: The command ""C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\DeployBTRules.exe" /vocabularyName "CI.DynamicRuntimeChecks" /ruleSetVersion "1.0" /unpublish /undeploy" exited with code -1.

Done Building Project "D:\Projects\HGL\BizTalk\Common\Main\Src\HGL.Integration.Common\HGL.Integration.Common.Deployment\HGL.Integration.Common.Deployment.btdfproj" (Deploy target(s)) -- FAILED.

Build FAILED.

"D:\Projects\HGL\BizTalk\Common\Main\Src\HGL.Integration.Common\HGL.Integration.Common.Deployment\HGL.Integration.Common.Deployment.btdfproj" (Deploy target) (1) ->

(UndeployVocabAndRules target) ->

C:\Program Files\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1593,5): error MSB3073: The command ""C:\Program Files\Deployment Framework for BizTalk\5.0\Framework\DeployTools\DeployBTRules.exe" /vocabularyName "CI.DynamicRuntimeChecks" /ruleSetVersion "1.0" /unpublish /undeploy" exited with code -1.

   0 Warning(s)

   1 Error(s)

Time Elapsed 00:03:54.85

I have two vocab’s and 1 policy file defined as follows

<ItemGroup>

   <RuleVocabularies Include="CHGL.DynamicRunTimeMaps.1.0.xmll">

     <LocationPath>..\$(ProjectName).BRE\Vocab</LocationPath>

   </RuleVocabularies>

   <RuleVocabularies Include="CI.DynamicRunTimeChecks.1.0.xml">

     <LocationPath>..\$(ProjectName).BRE\Vocab</LocationPath>

   </RuleVocabularies>

   <RuleVocabularies Include="CI.Resolve.DynamicMaps.1.0.xml">

                  <LocationPath>..\$(ProjectName).BRE\Policy</LocationPath>

            </RuleVocabularies>

</ItemGroup>

Why does this happen, if I go to the Business rules composer then delete the current version of the policy then re-run the BDF deployment it all works. Why can’t BDF delete and re-deploy the policy or am I missing something.

The annoying thing is it terminates the deployment script.

Cheers

Jim

 

Coordinator
Apr 14, 2011 at 2:31 PM

You said it's two policy files and one vocabulary file, but you have all of the ItemGroups as RuleVocabularies, no RulePolicies.

Thanks,
Tom

Apr 15, 2011 at 9:45 AM

Hi Tom,

Thanks for the reply.

Didn't realise that there were two Item Groups one for Policies the other for Vocabularies, thought it was being managed by the location paths.

Thanks again for the usual quick response.

Cheers

Jim