Scenario:
Export model from one dev environment to another dev enviornment
Steps to perform:
- Export model from enviornment using command prompt
- Import Model in another enviornment using command prompt
- Resolve conflicts
- Complete build of models and Synchonization of Database
Export Model:
Export the model using utilily name ModelUtil.exe located in the below path
K:\AosService\PackagesLocalDirectory\Bin
K:\ Drive can be varrried for local VM C:\ or J:\
Command:
ModelUtil.exe -export -metadatastorepath= [path of the metadata
store] -modelname=[name of the model to export] -outputpath=[path
of folder where model file should be saved]
Example:
ModelUtil.exe -export -metadatastorepath= K:\AosService\PackagesLocalDirectory -modelname=D365FnOModel -outputpath=C:\Users\Userf3d496631\Desktop\US\devmodelsbackup

Import model:
To install or import a model file use below code
ModelUtil.exe -import -metadatastorepath=[path of the metadata store
where model should be imported] -file=[full path of the file to
import]
Example:
ModelUtil.exe -Import -metadatastorepath= K:\AosService\PackagesLocalDirectory -file=C:\Users\Userf3d46296631\Desktop\US\devmodelsbackup\D365FnOModel

Delete a Model:
If model already exists in the destination environment. Delete the model using modelutility.exe
ModelUtil.exe -delete -metadatastorepath=[path of the metadata store]
-modelname=[name of the model to delete]
Example:
ModelUtil.exe -Delete -metadatastorepath= K:\AosService\PackagesLocalDirectory -modelName=D365FnOModel

Resolve the conflicts after importing:

Build and sycnhronize:
after resolving all the conlicts build the model(all models would be better but it will take long time) and synchronize the database
Like this:
Like Loading...