If you are in a place of importing bulk data into the Dynamics 365 CE, you have many choices like importing as excel, CSV or XML. But if you are having records for two tables which are related to each other as like accounts and contacts. You have to be careful while importing those records because this import may cause the following error “The lookup reference could not be resolved”. The error is due to the lookup values which are not present in the table we are looking for. This blog will guide to import the related records at a single stretch.
For importing records with alternate lookup references, we have to get the data for both the tables. In our case, we have taken accounts and contacts table. Go to the Environment ➔ Settings ➔ Data Management ➔ Data Import Wizard. The wizard will open in the new tab. Click on the Import Data button in the wizard, a dialog box opens up for importing files.
You will get to a Review File Upload Summary, in which you can make sure your CSV files are uploaded and set the delimiter. As I uploaded a CSV file, so the delimiter was comma(,). Then click on Next.
Map the source files with the dataverse table which you want to import. Ignore if it is correctly mapped already. It will take you to the Data map page where you can see two types of mappings, Default and SampleDataMap. Select Default Mapping and click Next.
Click on Submit to finish the import. After submitting, click on Finish and move to the imports page to track the imports.