Notifications
Announcements
No record found.
Hi All,
We have deployed new cloud hosted environment and need to move all custom model from one machine to other. For that we are trying to execute ModelUtil.exe command as mentioned in Microsoft document getting below access denied error. Do we have any alternative method to move custom model to new environment
Hi Sunil G Kurup,
Have you ran the command prompt in admin mode. Also on the command you have given for metadatastorepath as bin folder, that may be the issue. it should not be bin. Refer to below command.
"ModelUtil.exe -import -metadatastorepath=k:\aosservice\packageslocaldirectory -file=c:\NewFolder\MyCustomModel.axmodel"
This is the one way of doing.
other way will be through source control(Azure devops). If your code is in source control - You can connect devops in cloud hosted environment and download all the models.
Thanks,
Girish S.
Thanks Girish. Yes command prompt accessed via Admin Role and tried even after removing bin folder but getting same error.
As you mentioned through Devops means choose Clone Repository from Devops and choose the required project.
Hi Sunil,
Refer to the below links for configuring devops as source control in visual studio.
https://stoneridgesoftware.com/setting-up-version-control-in-dynamics-365-for-operations-with-visual-studio/
https://www.youtube.com/watch?v=EDVKULCMUbQ
Also try exporting and importing models through power shell. Refer to the below link.
https://www.cloudfronts.com/blog/dynamics-ax/model-import-and-export-in-d365-finance-and-operations-using-powershell/
In addition to Girish's comments, it is best practise to have your code backed up by source control if you have multiple dev instances.
Hi Arun,
Thanks for your reply.
We don't have multiple environment but our existing machine was configured in DevOps to keep backup of our codes. Hope we can connect the DevOps and get the latest code to new machine since old machine have some azure connector issue due to subscription change and Microsoft team ask to deploy new instead of updating existing one.
I just want ask you another workaround : - Copy the all the custom model files from old machine package library to new machine, then refresh model and build with data synchronize . Is it recommended or workable solution for this case
If you have your source code in Azure DevOps, take it from there. Go to your new VM, connect to the team project, configure workspace mappings and wait for the files to be downloaded.
Copying data manually is possible, but it's more complicated. The source control system is there to handle these things.
Connect the devops to a new machine and download the most recent code. If you have any problems connecting to the new machine, we can walk you through the steps.
If you have the same model in a new machine already and want to update it with recent code, you can export the project solution from the old machine and import it into the new machine.
I have one more suggestion - On the export command you have given outputpath as related to C:\user\admin. Try changing that to different folder drives instead of user folder.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader