Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Cloud Host environment data and code refresh Error

(0) ShareShare
ReportReport
Posted on by

Hello all

I just created a cloud host D365FO environment (10.0.26) with Contoso database inside, it works fine I can login D365FO front end and also can RDP to the cloud server.

we also have UAT sandbox backup (bacpac file format) and our own D365FO customization (deployment package) , they both are in LCS assets library.

Now I'd like to refresh the cloud host D365FO environment using the following steps

1. move the bacpac file into the cloud host D365FO environment

2. stop D365 related service

3. Restore bacpac to a new database

4. Switch this new database into AXDB

5. in LCS->Cloud host environment-> Maintain ->Apply Update, then select our customization package

in the step5 , it failed in step 12, DB sync issue.  how can I solve this issue? 

  • AnithaEswaran Profile Picture
    2,032 on at
    RE: Cloud Host environment data and code refresh Error

    Hi Simon,

    Best way is to first apply your package followed by DB refresh.

    Package brings the customized objects(like new fields/tables). Thus restoring db after deployment would make the process smooth.

    If it is the other way , these errors are expected as db refresh would not have found your field.

  • Verified answer
    babalalex Profile Picture
    411 on at
    RE: D365FO Cloud Host environment data and code refresh Error

    You are welcome.

    Please mark the answer as verified if it helped you.

  • SimonLiu22 Profile Picture
    on at
    RE: D365FO Cloud Host environment data and code refresh Error

    Thanks.

    I think I figure out the reason. the database and code package version is not match.

    I ma using the Feb DB backup and the latest deployment package which is May.

  • babalalex Profile Picture
    411 on at
    RE: D365FO Cloud Host environment data and code refresh Error

    FMPAYMENTINFORMATION, is it your custom element ?

    Don't you think customization should be applied before DB refresh ?

    I feel it is DB is conflicting with the existing DB structure and your DB seems to be aligned with new customization.

  • SimonLiu22 Profile Picture
    on at
    RE: D365FO Cloud Host environment data and code refresh Error

    Hello

    I use LCS to deploy the package, not the powershell command

    in LCS->Cloud host environment-> Maintain ->Apply Update, then select our customization package

    The error like this

    05/31/2022 03:46:41: Managed Data Sync Entity Worker encountered an exception, but is continuing because ContinueOnError is true. View Name and ID: 'PaymentInformation(15021)' Exception: System.InvalidOperationException: Database execution failed: Invalid object name 'FMPAYMENTINFORMATION'.

    CREATE VIEW [DBO].[PAYMENTINFORMATION] AS SELECT T1.ADDRESSID AS ADDRESSID, T1.CCN AS CCN, T1.CUSTOMERID AS CUSTOMERID, T1.CVV AS CVV, T1.EXPIRATIONMONTH AS EXPIRATIONMONTH, T1.EXPIRATIONYEAR AS EXPIRATIONYEAR, T1.NAME AS NAME, T1.STATE AS STATE, T1.ISPRIMARY AS ISPRIMARY, T1.PARTITION AS PARTITION, T1.RECID AS RECID FROM FMPAYMENTINFORMATION T1 ---> System.Data.SqlClient.SqlException: Invalid object name 'FMPAYMENTINFORMATION'.

  • babalalex Profile Picture
    411 on at
    RE: D365FO Cloud Host environment data and code refresh Error

    Can you share the error log exactly ?

    And how are you deploying the package through powershell ?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans