Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Cannot Unpublish Extension after Upgrade BC365 OnPrem

Posted on by 205

After we upgrade from BC365 17.2 to 18 we are not able to Unpublish Old Extension on Multi-Tenant Env.

We are using the following PS: 

Unpublish-NAVApp -ServerInstance $NewBcServerInstance -Name $ExtName -Version $OldBcVersion

Unpublish-NAVApp : The Extension cannot be unpublished because it is in use by the following tenants: default
At line:3 char:1
+ Unpublish-NAVApp -ServerInstance $NewBcServerInstance -Name $ExtName ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Unpublish-NAVApp], InvalidOperationException
+ FullyQualifiedErrorId : MicrosoftDynamicsNavServer$BC180/nav-systemapplication,Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.UnpublishNavApp

Any Hint?

  • Mohammed Marhoon Profile Picture
    Mohammed Marhoon 205 on at
    RE: Cannot Unpublish Extension after Upgrade BC365 OnPrem

    Hi

    Yes we dismounting tenants before the upgrade also we remove the extensions from the tenant using

    Get-NAVAppInfo -ServerInstance $BcServerInstance -Tenant $TenantId  | % { Uninstall-NAVApp -ServerInstance $BcServerInstance -Tenant $TenantId -Name $_.Name -Version $_.Version -Force}

    Also Unpublish the existing system symbols

    #Unpublish-NAVApp -ServerInstance $BcServerInstance -Name System

    Get-NAVAppInfo -ServerInstance $BcServerInstance -SymbolsOnly | % { Unpublish-NAVApp -ServerInstance $BcServerInstance -Name $_.Name -Version $_.Version }

    before we dismount

  • RE: Cannot Unpublish Extension after Upgrade BC365 OnPrem

    Hello,

    did the upgrade involve dismounting tenants? In that case check if the following tables got purged OK:

    [NAV App Published App]

    [NAV App Publish Reference]

    [NAV App Published Reference]

    Or I could be completely in the wrong place

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans