D365 FO: Uninstall model from UAT/PROD environment
To
delete the model, which was installed on the UAT/PROD environment via LCS.
Instructions
for uninstalling a model in UAT/PROD:
If the model is extension model:
1. Delete all the components from a model and create a deployable package out of it.
2. Create a text file called “ModuleToRemove.txt” and put it into the AOSService\Scripts folder
3. In the text file, put in the name of the module you want to remove, for example – “NewModel”
4. Zip up the package and upload into the asset library
5. Apply the package in a sandbox
If the model is an overlayered model:
1. Remove it (over layered code) from DEV environment in Visual Studio
2. Build the module (say if you have overlayered Application suite, build the Application suite module again after over-layering is removed)
3. Create a deployable package of the module that has over layering removed (say Application suite)
4. Follow the instruction to create a text file in the AOSService\Scripts folder and put Application suite in it.
5. Deploy the package as usual
6. During the deployment, it will wipe the whole Application suite module (with your overlaying) and reapply the new Application suite module in the package (without overlaying)
It should be noted that model directories will remain in the file system, but the models will be removed from the list of models available in the Visual Studio.
Source: MS URL’s, Blogs
If the model is extension model:
1. Delete all the components from a model and create a deployable package out of it.
2. Create a text file called “ModuleToRemove.txt” and put it into the AOSService\Scripts folder
3. In the text file, put in the name of the module you want to remove, for example – “NewModel”
4. Zip up the package and upload into the asset library
5. Apply the package in a sandbox
If the model is an overlayered model:
1. Remove it (over layered code) from DEV environment in Visual Studio
2. Build the module (say if you have overlayered Application suite, build the Application suite module again after over-layering is removed)
3. Create a deployable package of the module that has over layering removed (say Application suite)
4. Follow the instruction to create a text file in the AOSService\Scripts folder and put Application suite in it.
5. Deploy the package as usual
6. During the deployment, it will wipe the whole Application suite module (with your overlaying) and reapply the new Application suite module in the package (without overlaying)
It should be noted that model directories will remain in the file system, but the models will be removed from the list of models available in the Visual Studio.
Source: MS URL’s, Blogs
The Best of the Blogs You have Mentioned here
ReplyDeleteMicrosoft Dynamics AX Online Training
Thanks for sharing such an informative post with us. I hope you will share more such post. Please keep sharing.
ReplyDeleteApple Service center in Ameerpet, Hyderabad
Best Laptop Service center in Ameerpet, Hyderabad
If i have more than one module i want to remove how should i sort them inside the file, also i have tried to add the file "ModuleToRemove" to my package and upload the package to asset library but i am getting validation error, what is the reason any ideas?
ReplyDeletethanks in advance.