Dataverse Migration Pitfalls & How to Avoid Them
In this article
- Why Dataverse Migrations Fail
- Common Pitfall #1: Ignoring Data Volume and Type Complexity
- Common Pitfall #2: Overlooking Relationships and Lookups
- Common Pitfall #3: Mishandling File, Image, and Complex Columns
- How to Plan a Successful Migration
- Validation and Testing: The Step Most Skip
- Cost and Performance Considerations
- Alternatives and When to Reconsider
- Frequently Asked Questions
The top pitfalls in Dataverse migration are underestimating data volume and type complexity, ignoring lookup and relationship dependencies, mishandling file and image columns, and skipping a full validation cycle before cutover. Avoid them by auditing your source data thoroughly, mapping all relationships and business rules in advance, using the right migration tool for your scale, and testing iteratively against a staging environment until your data matches expectations.
Why Dataverse Migrations Fail
Dataverse is the underlying data platform for Power Platform and Dynamics 365. It stores data in tables (entities) with rows (records) and columns (fields), and it supports relationships, business rules, and security roles. Migrations fail when teams treat it like a simple SQL bulk copy. Dataverse has specific constraints: mandatory columns, unique identifiers (GUIDs), managed properties, and a security model that can silently block writes. A common failure is moving data without preserving the primary key GUIDs, which breaks references from external systems or historical logs. Another is assuming all source data types map cleanly to Dataverse—for example, a source text field with 10,000 characters will not fit a standard text column (max 4,000) unless you change it to a multi-line text column.
Common Pitfall #1: Ignoring Data Volume and Type Complexity
Dataverse has API limits: the default service protection limits allow roughly 600 requests per user per 5 minutes, and 120,000 requests per 24 hours for a tenant (though these can be adjusted). If you try to push millions of rows in one go, you will hit throttling. Also, certain column types (like file or image) are stored differently and require special handling. For example, a file column holds up to 30 MB per file, but the total file storage per environment is capped by your license. If you have a large attachment library, you need to plan for that storage cost and the slower upload speed.
Common Pitfall #2: Overlooking Relationships and Lookups
Dataverse relationships (one-to-many, many-to-many) depend on lookup columns that store GUIDs of related records. If you migrate parent records and child records separately without preserving the GUID mapping, the child records will point to nothing. Many migration tools allow you to define a mapping for lookups, but you must ensure that the parent record is inserted first and its new GUID is captured. For many-to-many relationships, you need to migrate the relationship records (the intersect table) after both sides exist. A typical mistake is migrating the intersect table before the related records, causing failures that are hard to trace.
Common Pitfall #3: Mishandling File, Image, and Complex Columns
Dataverse has several column types that do not behave like plain text or numbers: file, image, JSON, and customer (which is a special lookup to either account or contact). File and image columns are not included in standard data export/import via Excel. You need to use a tool that supports file uploads, such as Dataflows, Azure Data Factory, or third-party tools like KingswaySoft or Scribe. Also, the customer column is a single lookup that can point to two different tables—you must specify the target type during mapping. If you use a generic data import tool, it may fail because it does not know whether the value refers to an account or contact.
How to Plan a Successful Migration
Start with a detailed source audit. List every table, column, data type, and row count. Identify all relationships and the columns that store foreign keys. Then create a data map that specifies:
- Source table and column to target table and column
- Data type transformations (e.g., string to choice, date to date-only)
- Default values for mandatory columns that have no source equivalent
- Lookup resolution strategy (preserve GUIDs or map by natural key)
- File and image handling (upload via API or reference to external URL)
Then choose a migration tool. For small datasets (under 50,000 rows), the built-in Import Wizard may suffice. For larger or more complex migrations, use Dataflows (for recurring loads), Azure Data Factory (for large-scale and custom logic), or a third-party tool like KingswaySoft or Scribe. These tools handle GUID mapping and relationships better than Excel imports.
Validation and Testing: The Step Most Skip
After a test migration, run a thorough validation. Compare row counts, check that all lookup columns resolve to existing records, and verify that business rules and automation still work. Use the Dataverse Audit Log to see if any records were created or updated unexpectedly. Also, test security roles: if a user lacks read permission on certain records, they may appear missing. A common mistake is validating only from an admin account, which bypasses security, and then wondering why users see fewer records. Always validate with a test user that has the same security role as your end users.
Cost and Performance Considerations
Dataverse storage costs money. Each environment has a base storage quota (e.g., 10 GB for Dynamics 365, 10 GB for Power Apps per license). If you migrate large files or many attachments, you may exceed that quota and incur additional costs. Plan to compress files or move them to external storage (like SharePoint or Azure Blob) and store only a URL in Dataverse. Also, consider the performance impact: large migrations can slow down the environment for other users. Schedule the migration during off-hours and use batch operations (e.g., 500 records per batch) to avoid throttling.
Alternatives and When to Reconsider
If your source data is simple and small, you might not need a full migration tool—a manual Excel import could work. If you are moving from a legacy database with complex triggers and stored procedures, consider whether Dataverse is the right target at all. Dataverse does not support stored procedures or complex transactional logic; you might need Power Automate or custom code. If your data is highly relational with many-to-many relationships and you need real-time sync, consider using Azure SQL Database instead. But if you need tight integration with Power Platform and Dynamics 365, Dataverse is the right choice—just plan for the relationship complexity.
Frequently Asked Questions
Can I migrate data from Excel to Dataverse without any code?
Yes, for simple tables you can use the built-in Import Wizard in Power Apps. It supports Excel files up to 5 MB and can handle basic text, number, and choice columns. However, it does not handle lookups or file columns well. For those, you need a more advanced tool or a custom script.
What is the best way to preserve GUIDs during migration?
Use a tool that allows you to specify the primary key column during import. For example, in Dataflows, you can map the source GUID column to the target GUID column. If you use the Import Wizard, it will generate new GUIDs, so you must export the mapping after import and update foreign keys accordingly. A better approach is to use a third-party tool that supports GUID mapping natively.
How long does a typical Dataverse migration take?
It depends on data volume and complexity. A simple table with 10,000 rows can be migrated in minutes. A large system with 5 million rows and many relationships can take several hours or days, especially if you need to handle file uploads and validate. Always allocate extra time for testing and re-runs.
What are the most common mistakes with choice columns?
Choice columns (option sets) have a numeric value and a label. If you import a label that does not match the existing choice, the import will fail. Always map to the numeric value or ensure the labels match exactly. Also, be aware that global choice sets are shared across tables, so you must use the same values.
Can I migrate data from Salesforce to Dataverse?
Yes, you can use Azure Data Factory or third-party tools like KingswaySoft to connect to Salesforce and load data into Dataverse. You will need to map Salesforce objects to Dataverse tables and handle picklists (choice columns) and lookups. The same principles apply: preserve relationships and test thoroughly.