Migrate Dataverse Data Between Environments Using the Data Migration Utility
In this video, Brian Knight from Pragmatic Works walks through a practical and efficient method for migrating data between environments in the Power Platform. While many users are familiar with migrating solutions (apps, flows, and tables), Brian emphasizes a key limitation—data does not automatically transfer with solutions. This tutorial focuses specifically on how to migrate data safely and selectively using Microsoft’s Data Migration Utility.
Understanding Why Data Doesn’t Migrate with Solutions
Brian begins by explaining why data is excluded during solution migration. When moving from development to production environments, bringing over test or sample data could contaminate production systems. This separation ensures cleaner deployments and avoids unintended data conflicts.
However, there are scenarios where migrating specific datasets is necessary—such as moving configuration data, lookup values, or testing records. This is where the Data Migration Utility becomes essential.
Overview of the Data Migration Utility
The Data Migration Utility is a free Microsoft tool designed to export and import data across environments. While it may have minor quirks, it provides a structured and scalable way to move large datasets efficiently.
Brian outlines the three main phases involved in the process:
- Schema Creation – Define which tables (entities) and fields to include
- Data Export – Extract the selected data into a file
- Data Import – Load the data into the target environment
Step 1: Preparing the Environment
To demonstrate, Brian sets up two environments:
- A source environment (Development)
- A destination environment (Production)
He creates sample records in the development environment and ensures that the production environment is clean by removing existing data. This setup helps validate that the migration process works correctly.
Step 2: Installing the Data Migration Utility
The installation begins by downloading a PowerShell script provided in the video description. Brian demonstrates how to:
- Open PowerShell
- Create a new directory
- Paste and execute the script
Once executed, the script installs a set of administrative tools, including the Data Migration Utility, within a tools directory.
Step 3: Creating the Schema
After launching the utility, Brian selects the “Create Schema” option. This step defines what data will be migrated.
Key actions include:
- Logging in using an Office 365 account
- Selecting the source environment
- Choosing a solution that contains the relevant tables
- Adding entities (tables) to the schema
Using solutions simplifies the process because all related tables are grouped together. The schema is then saved as an XML file.
Step 4: Exporting the Data
Once the schema is created, Brian proceeds to export the data. The tool generates a ZIP file containing the selected records.
Important considerations:
- Export time depends on data volume
- Multiple tables can be included in a single export
- The schema file can be reused for future exports
This flexibility makes the tool suitable for both small and large-scale migrations.
Step 5: Importing Data into the Target Environment
In the final phase, Brian logs into the destination environment and selects the “Import Data” option.
The process includes:
- Authenticating again with Office 365 credentials
- Selecting the target environment
- Uploading the schema and data files
The utility validates the data before importing it. Once completed, the migrated records become visible in the destination environment after a refresh.
Key Tips and Best Practices
Brian shares several practical insights to ensure a smooth migration process:
- Clean the target environment before importing to avoid duplicate records
- Use solutions to simplify table selection
- Reuse schema files for repeated migrations
- Validate data post-import to confirm accuracy
He also notes that the utility appends data rather than overwriting existing records, which is an important behavior to consider during testing and deployment.
Extending the Approach
Beyond basic data migration, this method can also be applied to:
- Power Apps portals (Power Pages)
- Configuration data transfers
- Multi-environment testing workflows
Brian highlights that this process complements solution migration rather than replacing it. Together, they provide a complete deployment strategy for Power Platform applications.
Conclusion
This tutorial by Brian Knight provides a clear and structured approach to handling one of the most common challenges in Power Platform development—data migration. By leveraging Microsoft’s Data Migration Utility, users can selectively and efficiently move data across environments without risking production integrity.
For organizations managing multiple environments, mastering this process is essential for maintaining clean deployments, ensuring data consistency, and supporting scalable application development.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Platform and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.
Sign-up now and get instant access
ABOUT THE AUTHOR
SQL Server MVP and founder of Pragmatic Works. Brian has been working with SQL Server as a DBA and business intelligence professional since 1998. He has written more than 15 books on the topic and has spoken at dozens of conferences.
Free Community Plan
On-demand learning
Most Recent
private training

Leave a comment