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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Unable to publish extension

(0) ShareShare
ReportReport
Posted on by 449

Hello All,

I am using Business central On-Perm (BC 15). 

When i am trying to publish extension through VS Code, getting below error:

"The Extension cannot be unpublished because it is in use by the following tenants: default"

And when i try to uninstall the extension from "Extension Management", i am getting below error:

"an item with the same key has already been added"

Please advise.

Note : No upgrade was done.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    You can try to set you schemaupdate mode to forcesync in your launch.json file

    docs.microsoft.com/.../devenv-retaining-data-after-publishing

  • Manish Ratan Profile Picture
    449 on at

    I tried with forcesync and even re-cerate mode. But getting same error.

  • Suggested answer
    YUN ZHU Profile Picture
    103,264 Super User 2026 Season 2 on at

    Hi, Try the following commands in Business Central Administration Shell.

    UNPublish-NAVApp -ServerInstance BC152 -Name 'XXXX' -Version X.X.X.X

    Sync-NAVApp -ServerInstance BC152 -Name 'XXXX' -Mode Clean

    Hope this helps.

    Thanks.

    ZHU

  • Manish Ratan Profile Picture
    449 on at

    Hello i tried the commands in Business Central Administration Shell, but same error

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    Are you running in a multi tenant environment? It could be that the system thinks it is running in a multi tenant mode due to default while it is not. Then uninstall will never work because it won't uninstall it from the non mounted tenant default.

    Best probably is to raise a ticket to Microsoft support.

  • Manish Ratan Profile Picture
    449 on at

    Not using multi tenant environment.

  • Manish Ratan Profile Picture
    449 on at

    Marco Mels  is there a way to remove a multi tenant mode, which system assumed.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    There are a few tables from which you need to remove this extension from as it seems to be stuck. Best is to raise a ticket to Microsoft.

    Thanks.

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 452 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 371 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans