Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
This topic describes how to view and verify the contents of a model.
You can use either Windows PowerShell cmdlets or the AXUtil command-line utility to perform this task.
Validate that you have appropriate permissions to work with the model store:
Administrative permissions on the local computer
System Administrator rights in Microsoft Dynamics AX
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
- To view a list of the elements in a model or model file, at the Windows PowerShell command prompt, PS C:\>, type the following command, and then press ENTER.
(Get-AXModel -Model <Modelname>) –Details | Out-String
For more information, see [Get-AXModel](https://msdn.microsoft.com/library/jj720257\(v=ax.60\)).
On the Start menu, click Command prompt.
Navigate to the directory for the management utilities. Typically, the location of this directory is %ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities.
To view a list of the elements in a model, at the command prompt, type the following command, and then press ENTER.
axutil view /model :<modelname>
On the Start menu, point to All Programs, point to Administrative Tools, and then click Microsoft Dynamics AX Management Shell.
At the Windows PowerShell command prompt, PS C:\>, type the following command, and then press ENTER.
Test-AXModelData –Model <ModelName> -Verbose
This command verifies whether data exists in the specified model.
The following example shows the output of this command.
VERBOSE: AXUtil 6.0 - Microsoft Dynamics AX Admin Utility (6.0.906.0)
(c) Copyright, Microsoft Corporation, 2011. All rights reserved.
VERBOSE:
VERBOSE: The AXUtil command was started in the mode: EXISTS.
VERBOSE:
VERBOSE: Working against model store CONTOSO/MicrosoftDynamicsAX.
VERBOSE:
VERBOSE: Model data exists in Modelname model.
VERBOSE:
For more information, see [Test-AXModelData](https://msdn.microsoft.com/library/jj720251\(v=ax.60\)).
At the command prompt, type the following command, and then press ENTER.
axutil exists /model:<modelname>
This command verifies whether data exists in the specified model.
The following example shows the output of this command.
The AXUtil command was started in the mode: exists. Working against model store Contoso/MicrosoftDynamicsAX. Model data exists in Modelname model.
Models, Layers, and the Model Store
AxUtil and Windows PowerShell Commands for Deploying Models
Administering Microsoft Dynamics AX by using Windows PowerShell
Windows PowerShell for Microsoft Dynamics AX
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.