Fix Duplicate Index or Primary Key Errors When Importing into Microsoft Access
Question details
Identify the cause of a duplicate-value error during a saved import 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.
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.
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.
In the Access Navigation Pane, right-click the destination table and select Design View.
On the Design tab, select Indexes in the Show/Hide group.
In the Indexes dialog, inspect each index's fields and its Primary and Unique properties. Check whether an index combines multiple fields.
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.

Document the import steps and isolate the conflict
Use this approach if the destination table's Indexes dialog does not reveal an unexpected constraint.
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.

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.




