Monthly Archives: January 2016

Export Model in AX 2012 using Microsoft Dynamics AX Management Shell

A Model can be export and import into a model store.

Microsoft Dynamics AX Model is a set of elements in a given layer and each layer can be one or more models.

Model can be export to files using Microsoft Dynamics AX Management Shell and it will have .axmodel extensions.

Model exported called Model File or AX Model File.

Prerequisites:

  1. Administrative permissions on the local computer.
  2. System Administrator rights in Microsoft Dynamics AX.
  3. In Microsoft SQL Server:
    • Membership in the Securityadmin server role on the SQL Server instance.
    • Membership in the db_owner role in the Microsoft Dynamics AX database.

Procedures:

  1. Open Microsoft Dynamics AX Management Shell, Go to Start Menu > All Programs > Administrative Tools > Microsoft Dynamics AX Management Shell.
  1. At the Windows PowerShell command prompt, PS C:\>, type the following command, and then press ENTER.
    AX Management Shell:
    Export-AXModel –Model <name> -File <Filename.axmodel> 
    Example:
    Export -AXModel -Model "USR Model" -File C:\USR.axmodel
    
    Export Model AX2012
    
    Wait until it finished...
    
    Export Model AX2012 - Exported
    
    AX model files should be save and placed in C:\USR.axmodel
    
    Export Model AX2012 - Exported Location
    
    

     

    You can use the –Server, –Config, or –Database parameters to specify the environment to export from.

    You can also use the -Key parameter to specify the strong-name key pair file to use to sign a model.

    For more information, see Export-AXModel

Advertisements

Management Reporter Configuration Console Stopped working – Unexpected end of file.

Event Viewer Error (Image 1)

Error:

Unexpected end of file.

Machine: XXXXXXXXXX

1

**************************

Event Viewer Error (Image 2)

Error

Faulting Application name: MRConfigureConsole.exe, version: 2.12.140001.45 time stamp: 0x564f9134

Exception code: 0xe0434352

3

 

*******************************************

Event Viewer Error (Image 3)

Error:

Application: MRConfigurationConsole.exe

Description: The process was terminated due to an unhandled exception.

Exception Info: System.Xml.XmlException

 

2

 

****************************SOLUTION********************************

Solution:

Go to this path:

C:\ProgramData\IsolatedStorage\<XXX.XXX>\<YYY.YYYY>\

Check all the folder “Publisher.<XXXXXXXXX>” one by one. Go inside the folder and you can find “AssemFiles” Folder open it and you can find “DeploymentContext.txt” inside.

Right Click  and Open “DeploymentContext.txt”, If you see it’s empty delete it and if have something text inside just leave it as it is.

Note: Delete “DeploymentContext.txt” only when it’s empty to the whole Folder.

After you validated all the “Publisher.<XXXX>” Folder, Try to run the Configuration Console again and it should be working as normal.

 

If this help you, please like or put some comments below.

Thank you,