Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

How to prevent deletion of an extension during upgrades?

Posted on by 605

Hi All,

I am quite new to Dynamics 365 Business Central. I am using a cloud based Dynamics 365 Business Central sandbox. And so far i have launched few extensions on the sandbox as my customizations. And during the upgradation of D365 BC, everytime my extensions get deleted. Last time when it happened, i launched the extensions again but one the customization was not working properly like it worked before.

Can someone please help me this? How can i retain my extensions or prevent my extensions from getting deleted everytime an upgrade takes place in my sandbox? Also if possible how can i make sure that my customizations will work excalty the way it worked before the upgrade ?

Thanks in Advance.

  • Suggested answer
    vijaybaheti16 Profile Picture
    vijaybaheti16 100 on at
    RE: How to prevent deletion of an extension during upgrades?

    if the extensions are uploaded in sandbox the extensions wont be deleted, but if it is published the extensions will be deleted when upgraded.

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: How to prevent deletion of an extension during upgrades?

    Yes, you need to publish it again from VS code.

    If you want to keep the extension, you need to upload it through extension management. The extension there stays even after upgrade.

    Any extension that you publish from VS code will be uninstalled.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,137 Super User 2024 Season 2 on at
    RE: How to prevent deletion of an extension during upgrades?

    if you install from Visual Studio Code then those apps will be uninstalled while upgrading.

    if you upload them from extension management page and apps are compatible with upgraded version then those apps wont be uninstalled.

    mohana-dynamicsnav.blogspot.com/.../how-to-keep-custom-extensions-in-cloud.html

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to prevent deletion of an extension during upgrades?

    You just can't stop that from happening. The extensions are going to be removed from your system after you upgrade the system.

    It doesn't mean that the files of the extension are also going to be deleted. The files and data will stay there. You'll not be able to use them.

    Sandbox is a testing environment so the updates are going to be forced on it.

    That's it from me.

  • AXBOY Profile Picture
    AXBOY 605 on at
    RE: How to prevent deletion of an extension during upgrades?

    So by "reinstall the extension again"  you mean i have to publish the workspace again from the VS code app ? right?

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: How to prevent deletion of an extension during upgrades?

    Short answer is you can't.

    When the upgrade happens, it will uninstall your 'new' extension. The data is not gone, you just need to reinstall the extension again.

    This will not happen to the existing extension that are copied from your production when you create the sandbox.

  • Verified answer
    InsertX Profile Picture
    InsertX 422 on at
    RE: How to prevent deletion of an extension during upgrades?

    Your extension doesn't get deleted off the sandbox, it just gets uninstalled so the tables, pages and so on you made will still be there but you won't be able to use them. Now on a production environment it will hold back the updates if it is breaking with your uploaded code but since the sandbox is seen as a test environment they will force their updates by uninstalling your extension by default.

    So you are not losing your data but you shouldn't try to hold back the updates since it might give you bigger problems in the future. Now for the problems that have impact on your functionality that might happen so it doesn't work anymore, this is up to you to resolve those issues so that if you publish it on future releases of business central it works together with what Microsoft implies you should use.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,137 Super User 2024 Season 2 on at
    RE: How to prevent deletion of an extension during upgrades?

    Are you installing app by any chance from Visual Studio code?

    did you try uploading them from extension management page?

  • Verified answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: How to prevent deletion of an extension during upgrades?

    Hello,

    demiliani.com/.../

    Thanks.

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: How to prevent deletion of an extension during upgrades?

    Please check this link

    robertostefanettinavblog.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans