web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Cannot Unpublish Extension after Upgrade BC365 OnPrem

(0) ShareShare
ReportReport
Posted on by 12

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?

I have the same question (0)
  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    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

  • Mohammed Marhoon Profile Picture
    12 on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,250 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,799 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,390

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans