Model management in Dynamics 365 operations

In this post, we will see basic model management functions : – Export / Delete / Import
Before diving into these, i will brief you on what model is ? Model is a group of elements (metadata/source code/ .Net assemblies  ) that constitutes distributable software solution.  The model file can be installed / exported to/from another environment .
To perform these operations, use ModelUtil.exe which will be located in %/AOSService/PackagesLocalDirectory\Bin
Export Model file :
ModelUtil.exeexportmetadatastorepath=[path of the metadata store] –modelname=[name of the model to export] –outputpath=[path of the folder where the model file should be saved]
On executing this command, model will be exported to the specified path.
Delete the model:
ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] –modelname=[name of the model to delete]
Import the model:
ModelUtil.exe -import -metadatastorepath=[path of the metadata store where model should be imported] –file=[full path of the file to import]
If the expected parameter missing , system specifies the same in the error message.
In the below command, I used the parameter “filename” instead of “file” when importing the model. So the system warns the user about the missing parameter.

About AnithaEswaran

Hello all, Thanks for visiting my blog. I started this blog to share my learning with Ax members . Since I am from technical background, most of my posts would be from X++. Thanks to my mentor and my colleague Romain who guided and helped me in learning many new concepts in Ax. This instilled confidence in me to handle and troubleshoot complex issues. Feedback wrt to my blog entries are most welcome …
This entry was posted in Dynamics 365 Operations - Ax 7.0 and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s