web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Marco Mels Profile Picture
    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.

  • Andreas Panayides Profile Picture
    5 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

    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
    1,638 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

  • Andreas Panayides Profile Picture
    5 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

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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,037 Moderator 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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,252

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,117

#3
Sumit Singh Profile Picture

Sumit Singh 2,956

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans