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

Retrieve Latest Models for D365 Finance & Operations After Dev Environment Loss

(1) ShareShare
ReportReport
Posted on by 18

Our development environment for Dynamics 365 Finance & Operations (F&O) was recently deleted and is not recoverable. Unfortunately, we did not have a recent backup of the models stored separately.

 

We need to get the latest models that are currently deployed in the Production environment. What is the best approach to retrieve those models or recreate them in a new development environment?


  • We are on the latest version of D365 FnO.

  • Production is live and stable.

  • We want to avoid losing any recent customizations .



  •  
 

Any guidance or best practices on how to proceed would be greatly appreciated!

Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at
    If you use a source control system, you have everything there and you're fine.
     
    If not, you'll now learn how bad job you did when (not) setting up your processes.
     
    You can't get models from production, because none exist there. Models are for development; what you deploy to production are binaries (such as DLL files with CIL) that were created by compiling source code in models.
  • Patelniraj8 Profile Picture
    18 on at
    Is there a way MS can help in here???
  • udaY-ch Profile Picture
    5,133 on at
    Hi
     
    Yes, reaching Microsoft is the only option.
     
    Since this is a azure hosted VM. Check whether the back up is enabled on the Azure. May be that would help to recover the deleted VM, I haven't tried that but there is a possiblity to duplicate the vm with a backup.
     
    Thanks
    Uday
     
  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at
    There is no way how to get source code from production, because it simply doesn't exist there. Not even Microsoft can give you what doesn't exist.
     
    Without source control, your only chance (that I can think of) is backups and deployable packages (that may optionally include source code).
     
    You could get some information from binaries by decompiling CIL, but it's nothing close to the original source code and metadata.
     
    If you don't use source control, or backups at least, you're saying that you're fine with losing it at any moment. Then you shouldn't be surprised when it actually happens. Next time, make sure you set up source control before writing any code, and create deployable packages by pipelines from source control, ensuring that all code getting into production comes from source control. 
     
     
  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at
    Hi Patelniraj8,

    As mentioned below by Martin, if you didn't save anything using a source control system or created other backups, there is no way to retrieve the source code as it was on your development environment. I do concur with Martin that you should learn from this disaster and ensure you will have a proper source control and build pipeline in place for the future. 
     
    I feel sorry for you, but we can't help you. As you mentioned, you don't have a recent backup, but this can indicate you have a bit older backup of the models. You can try to start again from these. 
    Then when you create a copy of the current production environment, you can check the data model for any table and field added as part of your customizations. Ensure that at least you recreate these before moving again new deployments to your production to prevent any data loss.
  • Verified answer
    Navneeth Nagrajan Profile Picture
    2,438 Super User 2025 Season 2 on at
    Hi PatelNiraj8,
     
    Microsoft can give you a copy of the production database, however source code ownership is with the developers on the partner side or customer side. Both source code and version controlling the source code.
     
    As Martin mentioned, you can get a latest copy of the deployable package from Dynamics 365 Lifecycle Services (LCS) -> <LCSProjectName> -> Asset Library
     
    First step is to host your source code on Azure DevOps version controlling using team Foundation servics (TFS) or Git in Azure Devops. In addition to this, consider a branching strategy i.e. segregate your source code into Dev, Release and Prod/Main branches (If you are using TFS) or Dev, Release and master (if you are using Git).
     
    Before you sync source code from Azure Devops version controlling system ensure you backup all the new local development machine source code (X++ scripts or source code components like tables, forms, menu items etc.).
     
     
    References:
     
    Hope this helps. Happy to answer questions, if any.
     

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 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans