Tuesday, August 19, 2014

Hi,

I was working on export and import of model files using command prompt(NOT Microsoft Dynamics Power shell).

Before you go for this, make sure if you have proper permission on SQL. If not add your account to DB owner etc.

Below are the list of commands which are really helpful during this process. Open command prompt and write the following command and press enter:

cd C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities

Export model file using AXUtil


C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil.exe export /model:"Model name" /file:"Model file location"

Delete a model file

axutil delete /model:”model file name”

Import a model file using AXUtil
 
<C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil.exe import /file:" model file location" /conflict:"push"

Note: Using push command, an additional patch layer is created which has details of the conflicted objects. When I see the models installed, i was able to make out the models installed and the patch layer for for conflicted objects.


No comments:

Post a Comment