Announcements
Hi,
I'm having confusion after reading the blogs and Microsoft documentation on how to remove a model from UAT/PROD.
I could come up with 2 ways:
1. Download the same package from Asset Library which was previously deployed. Add File ModuleToRemove.txt (with model listed). Reupload to Asset Library and deploy to UAT. When I do this, there's a warning on LCS that "it will first reinstall the model and then delete it. In order to not reinstall, delete the model from package."
2. Create a new package (on dev machine) selecting just 4 out of 5 models (1 model needs to be deleted, so didn't select it). Add ModuleToRemove.txt file in the scripts folder of new package. Upload package to Asset Library (This time warning was gone which was there in step1) and deploy to UAT.
In the first approach, for the warning to go away, if I want to delete the model, I'll have to unzip the package, delete the files in Package folder and edit InstallationHotFix XML, rezip the package and upload to LCS. But this method gives validation error on LCS. If I do it without unzipping and zipping then I'm unable to edit the InstallationHotFix XML file (able to delete the files w/o unzipping).
Whats the right approach, as only 2nd approach didn't give any warnings, errors etc. The update is running as I'm typing this.
There's also some confusion with the terminology of Model and Module. The model is termed as module in InstallationHotFix and also the file is called ModuleToRemove and not ModelsToRemove. Anyone can clarify?
Appreciate any tips.
Best Regards,
Hi MYGz,
The second option you listed is part of the All-In-One deployable package strategy. You can read more here: All-in-one deployable packages - Finance & Operations | Dynamics 365 | Microsoft Docs
Yes, we deployed it on live environment on the same day. It's running smoothly without any error.
Hello abdultp
Thanks for your input.
Did you move the package to production after that? I read it somewhere in a blog that this "Model Missing" approach fails to move to production.
Hi,
We did it similar to the 2nd approach. Create the package excluding the model which needs to be deleted, upload in asset library & while updating it on UAT a dialog box will appear which mentions about the difference in the models between dev and uat asks to type 'CONFIRM' to go ahead with deployment.
Regards,
André Arnaud de Cal...
294,161
Super User 2025 Season 1
Martin Dráb
232,942
Most Valuable Professional
nmaenpaa
101,158
Moderator