web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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

I have the same question (1)
  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Astrid,

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

  • AstridMalanka Profile Picture
    8 on at

    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.

  • AstridMalanka Profile Picture
    8 on at

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

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Astrid,

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

  • Verified answer
    Ahmad_Sufyan Profile Picture
    on at

    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.

  • Johnny Profile Picture
    6,478 on at

    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"?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans