Fix Microsoft Access Append Query Key and Type Conversion Errors
Question details
The user needs to resolve key violations and type conversion errors in an Access append query.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Appending records from a temporary or source table to a target table with an AutoNumber primary key and other constraints.
- Observed behavior
- The append query fails to insert one or more records because of possible duplicate keys, mismatched types, relationship violations, or other field constraints.
Review the append error message and note how many records failed. Open the source and target tables in Design View to compare their field types, primary keys, indexes, and validation rules.
Let Access Generate the Target AutoNumber
Use this when the source and target tables both have AutoNumber IDs and the target should assign new IDs.
An AutoNumber generated in a temporary table is not guaranteed to be unique in the target table. Omitting the target AutoNumber field lets Access generate a new value for each appended record.
In the Navigation Pane, right-click the append query and select Design View.
In the query design grid, find the column mapped to the target AutoNumber field in the Append To row. Select that column and remove it from the grid.
Review the Append To row to make sure the other source fields map to the intended target fields.
Click Run, then open the target table and confirm that the expected records were added with newly generated IDs.

Check Relationships, Unique Values, and Field Types
Use this when records still fail after the AutoNumber mapping is corrected, or when Access reports key, validation, or type conversion errors.
Verify a Suspected AutoNumber Seed Problem
Use this when Access generates an AutoNumber that conflicts with an existing target ID after the source ID mapping has been removed.
Work With Office Files in WPS Office
WPS Office is a free, lightweight alternative for everyday document and spreadsheet work. Its familiar interface and Microsoft Office file compatibility make it easy to move existing files into your workflow. It does not repair Microsoft Access append queries or databases.

Frequently Asked Questions
Why does my Access append query report key violations?
A source value may duplicate a target primary key or unique index, or a foreign key may not match a parent record. Check the target table in Design View and review Database Tools > Relationships.
Should I append the temporary table's AutoNumber ID?
Usually not if the target has its own AutoNumber primary key. Remove that mapping from the append query's Design View and let Access generate the target ID. Plan how to update any related records that use the temporary ID.
What causes a type conversion failure in an append query?
A source value may be incompatible with the target field's data type or size. Compare the mapped fields in both tables' Design View, then correct the source data or query mapping.
How can I tell whether the AutoNumber seed is wrong?
Back up the database, check the highest existing ID in the target table, and add a test record without supplying an ID. A conflicting generated value may indicate a seed problem, but first rule out violations of other unique indexes.
Can I rerun an append query after some records fail?
First open the target table and check which records were inserted. Access may have appended some rows, so rerunning the same query without filtering or correcting the source could create duplicates or further key violations.




