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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

An item with the same key has already been added. The Extension cannot be unpublished because it is in use by the following tenants

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I am trying to Upgrade BC15 to BC 20. https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-unmodified-application-to-v20

When executing Get-NAVAppInfo I am getting more than 30 Extensions. In Business Central Extension Management I can see only 3 Installed. I tried to uninstall and unpublish all those extensions with no luck. (Before, I had more that I manage to delete them). 

When I am trying to uninstall (Uninstall-NAVApp) each of the 3 installed extensions I am getting error: An item with the same key has already been added.

When i am trying to unpublish (Unpublish-NAVApp) an extension I am getting error: The Extension cannot be unpublished because it is in use by the following tenants

Please help me identify the issue as I am not able to proceed with the upgrade

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    Do you have multiple tenants in your installation - if so you need to add the tenant parameter when you uninstall the app and uninstall it from all tenants before you unpublish it.

  • Andreas Panayides Profile Picture
    5 on at

    Thanks for your answer, no I do not have multiple tenants

  • Suggested answer
    tanya07 Profile Picture
    1,638 on at

    Hi,

    Please try this below suggestion -

    forum.mibuso.com/.../an-item-with-the-same-key-has-already-been-added

    community.dynamics.com/.../sync-navtenant-error-when-upgrading-to-bc-16-2

    Hope it helps!

    Thanks,

    TK

  • Andreas Panayides Profile Picture
    5 on at

    Thanks for your answer!

    I do not have duplicate values in dbo.$ndo$navappschemasnapshot.

    Also, there are no $AppData tables because I didn't upgrade BC15, I thing this solution is for those who already upgrade their BC. I stuck in the early stage of  removing the extensions.

    Thank you

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Please raise a support ticket to Microsoft support.

    Thank you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,175

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,476 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,435 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans