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

How to rename Enums and re-publish to AppSource?

(0) ShareShare
ReportReport
Posted on by 481

After updating my enum names on my extension, I tried to re-deploy my app to AppSource. However, during the validation process, I get this error on all enums I changed:

Name changes are not allowed because it might break the upgrade of existing installations and dependent extensions. 

Is there a way to get by this error? I would still like to update my enum names as I republish.

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    You have to write upgrade code to handle this.

    Please read here:

    docs.microsoft.com/.../devenv-upgrading-extensions

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, you need to obsolete the original enum, create a new one, and then modify your code to use the new enum. If there is data, you need to use the upgrade codeunit mentioned by Inge to transfer the value.

    For example,

    pastedimage1660441184160v1.png

    Hope this helps.

    Thanks.
    ZHU

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    You are not supposed to rename objects (including enum) on AppSource because it is under the assumption that there may be another app being dependent on your app. You will need to obsolete the old one and create a new one.

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 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans