Skip to main content
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 479

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.

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,777 Moderator on at
    RE: How to rename Enums and re-publish to AppSource?

    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.

  • Suggested answer
    YUN ZHU Profile Picture
    86,057 Super User 2025 Season 1 on at
    RE: How to rename Enums and re-publish to AppSource?

    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
    Inge M. Bruvik Profile Picture
    1,029 Moderator on at
    RE: How to rename Enums and re-publish to AppSource?

    You have to write upgrade code to handle this.

    Please read here:

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

  • Suggested answer
    Andy Sather Profile Picture
    on at
    RE: How to rename Enums and re-publish to AppSource?

    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.

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans