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.
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.
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,
Hope this helps.
Thanks.
ZHU
You have to write upgrade code to handle this.
Please read here:
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.
I will open this up to the community in case they have something to add.
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1