While cleaning up a development environment, we often use command ModelUtil.Exe to delete Model file of package, but it happen that the package is still shown on packagesLocalDirectory folder.
After performing the command ModelUtil.Exe to delete Model file of package, also follow the steps below to clean up package completely in many cases:
1- Stop IIS.(Aos machine)
2- Stop DynamicsAXBatch service on Task manager
3- Delete your package completely located on K:\AosService\packagesLocalDirectory
4-Open VS
5- Dynamics 365 --> Model management --> Refresh models
6. Restart WWW service, SQL Service IIS Service
Showing posts with label D365FO. Show all posts
Showing posts with label D365FO. Show all posts
Monday, April 6, 2020
Saturday, July 27, 2019
Dynamics 365 for Finance and Operation - Model Management
Open "Windows PowerShell ISE"
Change directory to Bin folder under metadata path for D365 FO (K:\AosService\PackageLocalDirectory\bin)
Export Model:
ModelUtil.exe -export -metadatastorepath=[path of the metadata store] -modelname=[name of the model to export] -outputpath=[path of the folder where the model file should be saved]
.\ModelUtil.exe -export -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="MYModelName" -outputpath=C:\Temp
Import Model:
ModelUtil.exe -import -metadatastorepath=[path of the metadata store where model should be imported] -file=[full path of the file to import]
.\ModelUtil.exe -import -metadatastorepath=K:\AosService\PackagesLocalDirectory -file="C:\Temp\MyModelName-Model publisher name.axmodel"
Delete Model:
ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] -modelname=[name of the model to delete]
.\ModelUtil.exe -delete -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="MYModelName"
Change directory to Bin folder under metadata path for D365 FO (K:\AosService\PackageLocalDirectory\bin)
Export Model:
ModelUtil.exe -export -metadatastorepath=[path of the metadata store] -modelname=[name of the model to export] -outputpath=[path of the folder where the model file should be saved]
.\ModelUtil.exe -export -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="MYModelName" -outputpath=C:\Temp
Import Model:
ModelUtil.exe -import -metadatastorepath=[path of the metadata store where model should be imported] -file=[full path of the file to import]
.\ModelUtil.exe -import -metadatastorepath=K:\AosService\PackagesLocalDirectory -file="C:\Temp\MyModelName-Model publisher name.axmodel"
Delete Model:
ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] -modelname=[name of the model to delete]
.\ModelUtil.exe -delete -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="MYModelName"
Subscribe to:
Posts (Atom)