Skip to main content

Notifications

Business Central forum
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

Categories:
  • 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,535 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,718 Super User 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.

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,876 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,425 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans