Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Restore database from Production to sandbox without transaction data

Posted on by 80

Hi All

What is the best way to restore database from D365 F&O Production to development vm without transaction data?

As our PROD data is grown more than 400 gb, restoring in cloud hosted development VM's will consume more space. We only want to have setup and master data to be available in development box.

Regards

Pradeep

  • Pradeep M V Profile Picture
    Pradeep M V 80 on at
    RE: Restore database from Production to sandbox without transaction data

    Yes, we need both setup and master data. Also we have 150 plus legal entities. Legal entities are getting onboarded as part of consolidation of erp.  It looks we will need to spend good amount of time to prepare this. The other option I see is to load new legal entities on old gold backups. Thank you for your input.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: Restore database from Production to sandbox without transaction data

    Hi Pradeep,

    Please check this post. You can restore Prod DB to your UAT (Sandbox) environment and delete the transaction data using the URL provided.

    You can then export the data into a bacpac file and restore on your Dev environment. Before you do that, you may want to check the cleanup routines as well and see if you can reduce the DB size.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,151 Super User 2024 Season 2 on at
    RE: Restore database from Production to sandbox without transaction data

    Hi Pradeep,

    Do you want to keep setup only or also master data? I do assume also the master data as settings alone does not make that much sense for unit tests. There is no easy way to achieve this. You an or restore the full database and delete transactions with a script or copy data using data management tools for tables individually.

    You might restore it in one machine; then delete transactions and then move this database to other development machines. You can try to use the class SysDatabaseTransDelete to delete the transactions. This class has been deprecated by Microsoft, but it is still available. This needs to be run per legal entity. There is a reason why Microsoft deprecated it, so check carefully what had been deleted or left behind.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans