Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

GlobalUpdate script for service model: RetailServer on machine: <server>

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I have installed a new dev environment a while ago and I used a back up to bring the data. Apparently someone was testing the retailserver while the back up was created, but we dont use it.

When I tried to apply the new version, it keeps failing on step 57.

I found a solution to undo it with a latest deployable package applied to the environment, but since it was a new environment, i don't have a previous one. 

How can I manually remove the retail channel components from the AOS database?

Thanks

Astrid

  • Johnny Profile Picture
    Johnny 6,420 on at
    RE: GlobalUpdate script for service model: RetailServer on machine: <server>

    Hi,

    it says "Only proceed if you are not using the Retail Channel functionality."

    So what would be a solution of this error if we are using "Retail Channel functionality"?

  • Verified answer
    Ahmad_Sufyan Profile Picture
    Ahmad_Sufyan on at
    RE: GlobalUpdate script for service model: RetailServer on machine: <server>

    If you are still facing the issue while applying the latest version:

    The following steps will indicate how to remove the Retail Channel Database components from the AOS database. By following these steps, you acknowledge that you are not using the Retail Channels (Point of Sale or Retail Cloud or Store Scale Units) OR you are using Cloud Scale Units (when using Cloud Scale Units, the Channel Database collocated with the AOS DB [Default Database] is not used anymore) OR you are applying this in your Develop/Demo environment and is able to redeploy your extensions (in this case, please see call out in the end of instructions). After you complete these steps, you will need to retry/resume/start an application deployable package, which will recreate the Retail Channel database components.

    Connect to the intended environment.

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

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

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

    Connect to the AOS database and run the script mentioned on Step 4. This operation will take several minutes.

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

    Note: if you ran these steps on a DEV/DEMO environment and you are using Retail Channel Database; you will need to reapply your extensions (if any) to the Channel Database and then perform a CDX Full Data Sync on the "Default" channel database to restore the data to the database. Any transactions not synchronized to the HQ through P-Jobs would be lost. Reactivating the POS devices is required after these steps.

    Note: If you need assistance raise a support request with Microsoft.

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: GlobalUpdate script for service model: RetailServer on machine: <server>

    Hi Astrid,

    I found the script from a service update package. Please try the service update package for the version your environment is on.

  • AstridMalanka Profile Picture
    AstridMalanka 8 on at
    RE: GlobalUpdate script for service model: RetailServer on machine: <server>

    I looked at it again, and apparently I need to find a script, but I really don't understand where to find it.

  • AstridMalanka Profile Picture
    AstridMalanka 8 on at
    RE: GlobalUpdate script for service model: RetailServer on machine: <server>

    Hi,

    Yes, that was the post I was referring to. But there was not deployable package. it was version 14th and then i got the code from the main branch and did a database restore, so i am not sure how to proceed.

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: GlobalUpdate script for service model: RetailServer on machine: <server>

    Hi Astrid,

    Please check this post and perform the steps to get rid of this error during upgrade.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans