Pages

Banner 468 x 60px

 

Monday, March 27, 2017

Export Import AX model

0 comments
Export Import AX model :

Copy dari sumber :
cd C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin

Paste ke tujuan :
cd C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin

Cara Eksport (dari Server) :
C:\Users\Administrator>axutil export /model:"USR Model"/db:MicrosoftDynamicsAX_Model/file:JTC2012Model.axmodel
The AXUtil command was started in the mode: export.

Cara Import (ke local virtualbox) :
axutil import /file:<JTC2012MOdel.axmodel> /verbose
atau
axutil import /file:JTC2012MOdel.axmodel /verbose

cd C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin
axutil export /model:"USR Model" /db:MicrosoftDynamicsAX_Model /file:JTC2012MOdel.axmodel


Error Install AXModel

Install-AXModel : The pipeline has been stopped.
At line:1 char:16
+ Install-AXModel <<<<  -File C:\TriModel.axmodel -Conflict Push
    + CategoryInfo          : OperationStopped: (:) [Install-AXModel], Pipelin
   eStoppedException
    + FullyQualifiedErrorId : The model file references an element that belong
   s to another model that
does not exists in the model store. You can use the /createparents
    command switch to create a model where these elements will be placed.,Micr
   osoft.Dynamics.AX.Framework.Tools.ModelManagement.PowerShell.InstallAXMode
  lCommand




Resolution:  This problem comes because of conflict in model import, refer to TechNet topic How to: Export and Import a Model [AX 2012] or use the -Conflict Push option at the end of the command to import model file.

Below is full command in case of above error to import model file:

PS C:\Windows\system32> Install-AXModel -File C:\TriModel.axmodel -createparents
 -Conflict Push

0 comments:

A financial dimension value is based on the LAND-00013 record and has been used on a transaction. You cannot delete the LAND-00013 record AX 2012

 A financial dimension value is based on the LAND-00013 record and has been used on a  transaction. You cannot delete the LAND-00013 record ...