ACC2000: Upsizing Error and No Data Is Upsized with Table That Contains Replication IDs (253757)
The information in this article applies to:
This article was previously published under Q253757 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you upsize an Access table that contains Replication ID fields, you may receive the following error message:
Microsoft Access was unable to append all the data to the table.
The contents of fields in x record(s) were deleted, and 0 record(s) were lost due to key violations.
*If data was deleted, the data you pasted or imported doesn't match the field data types or the FieldSize property in the destination table.
*If records were lost, either the records you pasted contain primary key values that already exist in the destination table, or they violate referential integrity rules for a relationship defined between tables.
Do you wish to proceed anyway?
If you proceed, you see one of the following results when the upsizing process is finished:
-
If you do not have a unique index on the field that contains Null values, the table is upsized as well as the data.
-
If the field has a unique index but ignores Null values, the number of records deleted will be the count of the null records, but none of the data is upsized.
CAUSE
You have one or more Replication ID fields in the table, and one of the Replication ID fields has Null values. If there are no Null values in the table's Replication ID fields, the table is upsized without the error, and all the data is upsized.
RESOLUTION
To work around this problem, temporarily drop the index from the Replication ID field that contains the Null values before you upsize the table. After the table is upsized, you can add the index back to the SQL Server table with Enterprise Manager or in an Access Project. To see an example of how to do this, follow these steps:
-
Open the original Access database (.mdb).
-
Open the problem table in Design view.
-
On the View menu, click Indexes.
-
Delete the index that is on the Replication ID field that contains the Null values.
-
Upsize the database. The table should be upsized with all the data.
-
Open the target SQL Server database, either in SQL Server Enterprise Manager or in an Access project.
-
Open the table in Design view.
-
Right-click anywhere in the table design area, and then click Properties.
-
In the Properties dialog box, click Indexes/Keys.
-
Click New. On the first blank row under Column Name, select the column on which you want an index. In the Index Name box, accept the default index name or type a different name.
-
Change any of the other default settings for the index if you need to.
-
Close the Properties dialog box.
-
Save and close the table.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was corrected in Access 2002.
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kbbug kbnofix KB253757 |
---|
|