Quantcast
Viewing latest article 19
Browse Latest Browse All 140

Created Unassigned: Remove-Item issue while trying to remove BizTalk applicaiton by using BizTalk PowerShell provider cmdlet [8154]

Hi,


I got the following exception when trying to use PowerShell BizTalk provider to remove BizTalk application:


Command:

$status = Remove-Item -Path $BizTalkApplicationName -Recurse

Exception:

13/02/2017 4:03:03 PM [ERROR] - Exception: [USM.Common.Patterns.BRE 1.0] Unable to Remove BizTalk
Application. US-Biztalk-Remove-Application Failed! Caught an Exception in [C:\Dev\Source\UniSupe
rV2\Development\DevOps\Deployment Scripts\Bamboo Build Script\_SHARED\Pal\US_BizTalk_Admin.psm1]
at [151] : BizTalkFactory.Management.Automation.BtsException: Unable to commit changes to the Biz
Talk management database
Ruleset "USM.Common.ErrorFramework.Configuration.2.0", version 1.0 is not deployed. ---> Microsof
t.RuleEngine.RuleEngineDeploymentNotDeployedException: Ruleset "USM.Common.ErrorFramework.Configu
ration.2.0", version 1.0 is not deployed.
at Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer.SaveChangesWithTransaction(Object transacti
onObj)
at BizTalkFactory.Management.Automation.BtsCatalog.SaveChanges()
--- End of inner exception stack trace ---
at BizTalkFactory.Management.Automation.BtsCatalog.SaveChanges()
at BizTalkFactory.Management.Automation.Helper.BtsApplicationHelper.ResetPipelines(BtsApplicat
ion application)
at BizTalkFactory.Management.Automation.BtsCatalog.RemoveApplication(BtsApplication applicatio
n, Boolean recursive)
at BizTalkFactory.PowerShell.Extensions.Application.RemoveItem(Boolean recurse)
at BizTalkFactory.PowerShell.Extensions.BizTalkProvider.RemoveItem(String path, Boolean recurs
e)
at System.Management.Automation.SessionStateInternal.RemoveItem(CmdletProvider providerInstanc
e, String path, Boolean recurse, CmdletProviderContext context) [line=139; offset=19] At C:\Dev\S
ource\UniSuperV2\Development\DevOps\Deployment Scripts\Bamboo Build Script\_SHARED\Pal\US_BizTalk
_Admin.psm1:139 char:19
+ $status = Remove-Item -Path $BizTalkApplicationName -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


I have checked BRE after the failure and the policy in question is in the 'Published' state (initially it was in the 'Deployed' state). Second run of the same command is removing application successfully including policy.

Anyone encountered something similar?

Your help is very much appreciated.

Thanks,

Alla

Viewing latest article 19
Browse Latest Browse All 140

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>