Others

Fix Duplicate Index or Primary Key Errors When Importing into Microsoft Access

Jason MillerJason Miller Nov 14, 2026 870 views

Question details

Identify the cause of a duplicate-value error during a saved import into Microsoft Access.

Fix Duplicate Index or Primary Key Errors When Importing into Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
A user runs a saved import into an Access table and needs to identify the conflicting key or index.
Observed behavior
Access reports that the import would create duplicate values in an index, primary key, or relationship, although no obvious keys or indexes are visible on the table.
Before you start

Identify the destination table and source file used by the saved import. Note whether the import appends records to an existing table or creates a new table.

Solution 1Recommended

Inspect the destination table's indexes in Design View

Use the Indexes dialog to find unique or multicolumn indexes that may not be obvious from individual field settings.

1
Open the table design

In the Access Navigation Pane, right-click the destination table and select Design View.

2
Open the Indexes dialog

On the Design tab, select Indexes in the Show/Hide group.

3
Review index properties

In the Indexes dialog, inspect each index's fields and its Primary and Unique properties. Check whether an index combines multiple fields.

4
Compare the source data

Open the source file and compare the values in the indexed fields with one another and with existing destination records. Correct duplicate values or adjust the import mapping as needed, then rerun the saved import.

Inspect the destination table's indexes in Design View
Keep required constraints: Do not delete a unique index or primary key without confirming why it exists and whether relationships or application logic depend on it.
Free Microsoft Office alternative

Review import source spreadsheets with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface for reviewing spreadsheet data before an Access import. Its Microsoft Office format compatibility makes it easy to move existing files into your workflow. It does not repair Access database indexes or relationships.

Review source spreadsheet values before importing them into AccessCompatible with Microsoft Excel XLSX and XLS filesFamiliar spreadsheet interface for a seamless transition from Microsoft OfficeFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Where can I see all indexes on an Access table?

Right-click the table in the Navigation Pane, select Design View, and choose Indexes from the Design tab's Show/Hide group.

Can a multicolumn index cause this error?

Yes. If a unique index combines fields, duplicate combinations of those fields can cause an import error even when individual field values are not unique.

Should I remove the primary key to complete the import?

Not without checking its purpose. First compare the source values and field mappings with the destination key; removing a key can affect relationships and application logic.

What should I check if I cannot find an unexpected index?

Record the exact import steps and mappings, inspect Database Tools > Relationships, and test a small set of source records in a new table to help isolate the conflict.