Microsoft AX 2012 Test Data Transfer Tool
Tool can be used for two different purposes. One is to install demo data and other one is elaborated as below. Customers often need to have a production dataset to use when building and validating customizations in non-production environments.
The Microsoft Dynamics AX 2012 Test Data Transfer Tool (beta) is a tool that helps move data between from production to non-production environments or from non-production environments to production environments to make a new production environment. But you must be careful becasue the tool imports data table by table and deletes the data in the table before importing. Hence it is highly advised against running the tool for import in production environments.
Export and import data outside AX, without running an AOS instance.
Export and import processing are faster compared to other tools because this tool is based on SQL Server bcp.
The tool can work around the table/field metadata changes between builds and environments and hence can be used to move data from build to build, and environment to environment even when there are customizations, and metadata changes.
The tool minimally changes data during the import process. The only data the tool changes are the entity IDs (IDs related to table, field, etc.) that are stored as data and that could change with each deployment. The tool recognizes the changes and patches the data with the AXIDs of the system that the data is being imported into.
The data file format is the standard format produced by SQL Server bcp. The output is text based and can be stored and compared against other versions in a version control system.
- Download AX2012TestDataTransferTool.zip file from LCS
Run the setup file in SQL SERVER environment and complete the installation.
“C:\Program Files (x86)\Microsoft Dynamics AX 2012 Test Data Transfer Tool (Beta)” file appears automatically. Find the
MetadataXMLGenerator.xpofile and import it into AX.
A job named
AOT/jobs. Find and run the job.
Job generates a file named
MetaData.Xmland gives you a file path via infolog.
MetaData.Xmlfile and paste in “C:\Program Files (x86)\Microsoft Dynamics AX 2012 Test Data Transfer Tool (Beta)[Lists]” file in Prod(Golden) SQL SERVER. Overwrite the existing
DEV or TEST Environment
Repeat the steps 2-6 for DEV environment.
The windows user who is going to execute the process should have access MicrosoftDynamicsAx ve Model database in DEV and Prod SQL servers. “Read” is enough for (Prod) exporting. “Full” right is enough for importing (DEV).
The windows user who is going to execute the process should have “full” access “C:\Program Files (x86)\Microsoft Dynamics AX 2012 Test Data Transfer Tool (Beta)” in both DEV and Prod SQL servers. System generates logs here.
Now, Live (Golden) environment’s data will be exported. Prepare a file to export live(Golden) data on Live SQL Server. For instance
Type the following command in command line and initiate the exportation process:
DP.exe EXPORT Directory>> Database name>> Server>>
DP.exe EXPORT C:\DC_EXPORT "MicrosoftDynamicsAX" "ServerName"
Copy the exported file
(C:\DC_EXPORT)to DEV environment
Stop DEV AOS service
Type the following command in command line and initiate the importation process:
DP.exe IMPORT Directory>> Database name>> Server>>
Start DEV AOS service.
Note: DP.exe EXPORT/IMPORT commands must be run from the related directories