Import or export data from Dataverse
To get (import) data into Microsoft Dataverse tables, use an Excel worksheet file, a comma-separated values (CSV) file, or one of the many connectors available.
When you export Dataverse table data, it's exported as a CSV file.
Import using a connector
Use a connector to import data from a selection of many different sources, such as Microsoft Excel, Azure, SQL Server database, SharePoint, Access, OData, and more.
- Sign into Power Apps.
- On the left navigation pane expand Data, and then select Tables.
- Select Data > Get data > Get data.
- From the Data sources list, select the connector that you want to import data from.
Import from an Excel or CSV file
There are two ways to import data from Excel.
- Option 1: Import by creating and modifying a file template
- Option 2: Import by bringing your own source file
Option 1: Import by creating and modifying a file template
Every table has required columns that must exist in your input file. We recommend that you create a template. To do this, export data from the table. Then, use the same file and modify it with your data. Finally, import the modified file back into the table. Using a template can save you time because you won't have to specify the required columns for each table.
Prepare the file template
- Export the table data.
- Define a plan to make sure data is unique before you import it. Use either primary keys or alternate keys. More information: Ensure uniqueness when you import data into a table from Excel or CSV
Modify the file with your data
Copy data from your Excel or CSV file into the template that you created in the previous step.
Import the file
- On powerapps.com, expand the Data section. Select Tables in the left navigation pane.
- Select Data, to the right of Get Data select >, and then select Get data from Excel.
- Select the tables where you want to import data, and then select Next.
- On the Import data page, select Upload, and choose your file. Follow the prompts to upload your file.
- After the file is uploaded and Mapping status indicates Mapping was successful, select Import from the top-right corner. Go to Troubleshoot mapping errors with Excel to navigate and fix any mapping errors. After the import finishes successfully, you'll see the total number of inserts and updates.
Option 2: Import by bringing your own source file
If you're an advanced user and know the required columns for a given table for Dataverse tables, define your own Excel or CSV source file. Follow the steps in Import the file.
Troubleshoot mapping errors with Excel
If you get mapping errors after you upload your file, select Map status. Take the following steps to inspect and rectify the column mapping errors.
Use the drop-down menu on the right, under Show, to walk through the Unmapped columns, Fields with error, or Required Fields.
- Depending on whether you get a Warning or an Error, inspect Unmapped columns or Fields with error through the drop-down menu in Column Mappings.
- Use the upsert (Update or Insert) logic to either update the row, if it already exists, or to insert a new row.
After you resolve all the errors and warnings, select Save Changes in the top-right corner. You'll go back to the Import Data screen.
When the Mapping status column shows Mapping was successful, select Import from the top-right corner.
When the Import completed successfully message appears, the total inserts and updates are displayed.
Ensure uniqueness when you import data into a table from Excel or CSV
Dataverse tables use a primary key to uniquely identify rows within a Dataverse table. The primary key for a Dataverse table is a globally unique identifier (GUID). It forms the default basis for row identification. Data operations, like importing data into Dataverse tables, surface the default primary keys.
The primary key for an Account table is accountid.
Sometimes, a primary key might not work when you integrate data from an external source. Use Dataverse to define alternate keys that uniquely identify a row in place of the primary key.
For an Account table, you might set transactioncurrencyid as an alternate key by using a natural key-based identification. For example, use US Dollar instead of the GUID value 88c6c893-5b45-e811-a953-000d3a33bcb9 shown previously. You can also choose currency symbol or currency name as keys. More information: Define alternate keys using Power Apps portal
You can still use primary keys as identifiers after you specify alternate keys. In the preceding sample, the first file is still valid if GUIDs are valid data.
Export data from one or more tables. Exported data is in comma-separated value (CSV) format. When you export data from more than one table, each table is exported into its own CSV file.
Sign into Power Apps, on the left navigation pane expand Data, and then select Tables.
Select Data > Export data.
Select the tables that you want to export data from, and then select Export data.
After the export finishes successfully, select Download exported data to download the CSV file to the download folder specified in your web browser.
Exports have a 12 minute time limit. If the volumne of data exported exceeds 12 minutes the export will fail. If this occurs, export data in smaller segments.
Unsupported data types and fields
The following data types aren't currently supported for import or export.
- Choices (multiselect)
The following fields are system fields and are not supported for import and export.
Get Data from Excel and Export Data features are currently not included in the Power Apps Developer Plan.
Submit and view feedback for