Step GlobalUpdate script for service model: RetailServer on machine: DEV-VM is failing during MsDyn365FO package deployment

In the past, I often had the problem that during package deployment of a service update via Lifecycle Services (LCS) the step “GlobalUpdate script for service model: RetailServer” unexpectedly failed. The reason why this was not expected is that I´m not using the RetailServer at all, so the component should be in the same state as it was deployed or updated by the previous service update.

After some research, I found the post from Rahul Sharma in the Dynamics 365 community blog. Because of this blog, I found the solution which “solved” the error several times already.

All you have to do is:

1. Connect to the intended environment.

2. Find the latest deployable package applied to the environment. It will be under folder <ServiceVolume>:\DeployablePackages\

3. Under the deployable package folder, find the following SQL script <ServiceVolume>:\DeployablePackages\RetailServer\Scripts\DropAllRetialChannelDbObjects.sql

This script, when run against the AOS database, will remove all objects related to the Retail Channel Database. Only proceed if you are not using the Retail Channel functionality.

4. Connect to the AxDB database and run the above script. This operation will take several minutes.

5. Resume the package deployment or start the package deployment to have the Retail Channel components recreated correctly.

https://community.dynamics.com/ax/b/d365fortechies/posts/microsoft-dynamics-365-finance-update-error-globalupdate-script-for-service-model-retailserver

Comments

Popular posts from this blog

D365FO - Data integration by OData

Create or Update Product attributes using X++ in D365 F&O

Layers concept in D365