Skip to main content

Notifications

Announcements

No record found.

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

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

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: An item with the same key has already been added. The Extension cannot be unpublished because it is in use by the following tenants

    Hello,

    Please raise a support ticket to Microsoft support.

    Thank you.

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

    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
    tanya07 Profile Picture
    tanya07 1,554 on at
    RE: An item with the same key has already been added. The Extension cannot be unpublished because it is in use by the following tenants

    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

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

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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: An item with the same key has already been added. The Extension cannot be unpublished because it is in use by the following tenants

    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.

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