For
model importing:
Go to run-cmd
cd C:\Program
Files\Microsoft Dynamics AX\60\ManagementUtilities
enter
C:\Program Files\Microsoft Dynamics
AX\60\ManagementUtilities>
axutil import /file:”C:\irfanmodel.axmodel” /config: MicrosoftDynamicsAX
/conflict:PUSH /createparents:ON
enter
y
y
then model is successfully imported
here Irfanmodel.axmodel- is our model
MicrosoftDynamicsAX-instance name(services/server aos/client
configuration instance name)
For
exporting command:
Go to run-cmd
cd C:\Program
Files\Microsoft Dynamics AX\60\ManagementUtilities
enter
C:\Program Files\Microsoft Dynamics
AX\60\ManagementUtilities>
axutil export /model:irf /file:C:\irfamodel.axmodel /config:
MicrosoftDynamicsAX
Enter
Y
Y
Here in irf – is our using model from where should we want
data model
Irfamodel.axmodel-destination file in c drive
MicrosoftDynamicsAX-instance name
While doing model import /export make sure that command
having same spaces and case sensitive
Export an .axmodel file (Windows PowerShell)
1. On the Start menu,
point to All Programs, point to Administrative Tools,
and then click Microsoft Dynamics AX Management Shell.
2. At the Windows
PowerShell command prompt, PS C:\>, type the following command, and then
press ENTER.
Windows PowerShell
Export-AXModel –Model <name> -File <Filename.axmodel> -Details
This example
exports the specified model to a file that has the specified file name.
You can use
the -Key parameter to
specify the strong-name key pair file to use to sign a model.
3. You can also use
the Sign Tool to sign the file with a digital certificate, or the AXUtil
genlicense command to Authenticode sign a file. For more information, see:
Export an .axmodel file (AXUtil)
1. On the Start menu,
click Command prompt.
2. Navigate to the
directory for the management utilities. Typically, the location of this
directory is %ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities.
3. At the command
prompt, type the following command, and then press ENTER.
4. axutil export /model:<modelname>
/file:<filename> /verbose
This example
exports the specified model to a file that has the specified file name.
You can use
the [/key:SNK-file] parameter to
specify the strong-name key pair file to use to sign a model.
Import an .axmodel file (Windows PowerShell)
1. On the Start menu,
point to All Programs, point to Administrative Tools,
and then click Microsoft Dynamics AX Management Shell.
2. At the Windows
PowerShell command prompt, PS C:\>, type the following command, and then
press ENTER.
Windows PowerShell
Install-AXModel -File <Filename.axmodel> -Details
This command
installs the specified file in the same layer that it was exported from.
By default, you
will be prompted to install the model based on whether it has been signed. The
following table describes the prompts shown.
Scenario
|
Prompt
|
The model file is
not signed.
|
The model is not
signed. Are you sure you want to install this model (Y/N)?
|
The publisher is
recognized from the digital certificate.
|
The model is
signed by ‘{0}’”. Would you like to continue (Y/N)?
|
The publisher was
not available from the digital certificate.
|
The certificate
for the model was not recognized. Are you sure you want to install this model
(Y/N)?
|
The provider for
the certificate is unknown.
|
The certificate
for the model was not recognized. Are you sure you want to install this model
(Y/N)?
|
If the installation
fails because of a conflict, we recommend that you rerun the cmdlet, and use
the -Conflict Push option to push the element that has the
conflict to the related update layer. You can then resolve the conflict. For
more information, see How to: Resolve Conflicts After Importing a Model.
Import an .axmodel file (AXUtil)
1. On the Start menu,
click Command prompt.
2. Navigate to the directory
for the management utilities. Typically, the location of this directory is
%ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities.
3. At the command
prompt, type the following command, and then press ENTER.
axutil import /file:<filename>
/verbose
Import/Export models without powershell/AXUtil inside AX client.:) http://www.42hertz.com/posts/42hertz-dynamics-ax-model-porter/. Thanks 42hertz INC
ReplyDeleteApp URL: http://store.42hertz.com/collections/ax-modules/products/42hertz-dynamics-ax-model-porter