ACC: Import Errors Table Not Created During Failed Import

ID: Q171852


The information in this article applies to:


SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

Microsoft Access 7.0 and 97 do not create an Import Errors table after an import of a text file or spreadsheet fails.


CAUSE

The circumstances under which Microsoft Access 7.0 and 97 create an Import Errors table have changed from earlier versions of Microsoft Access. Microsoft Access 7.0 and 97 create an Import Errors table only in the following situations:


STATUS

This behavior is by design.


MORE INFORMATION

The Import Errors table contains descriptions of the errors Microsoft Access encounters when trying to import a text file or spreadsheet. The table includes field names and row numbers that indicate which data has caused errors.

Versions of Microsoft Access earlier than Microsoft Access 7.0 create an Import Errors table in the following situations:

Steps to Reproduce Behavior

The following example attempts to import a record that violates referential integrity into the Order Details table in the sample database Northwind.mdb.
  1. Open any text editor, such as Notepad, and create the following new text file:
    
           99999,54,7.45,20,0.000 


  2. Save the text file as C:\My Documents\OrdDetails.txt.


  3. Start Microsoft Access, and open the sample database Northwind.mdb.


  4. On the File menu, point to Get External Data, and then click Import.


  5. In the Import dialog box, select Text Files in the Files Of Type box.


  6. Locate the folder C:\My Documents, select OrdDetails.txt, and click Import.


  7. On the first screen of the Import Text Wizard, select the Delimited option, and then click Next.


  8. On the second screen of the Import Text Wizard, click Next.


  9. On the third screen of the Import Text Wizard, select the "In an Existing Table" option, and select the Order Details table from the list.


  10. Click Finish. Note that you receive the following error message:
    Microsoft Access was unable to append all the data to the table.

    The contents of fields in 0 record(s) were deleted, and 1 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 want to proceed anyway?


  11. Click Yes. Note that Microsoft Access does not create an Import Errors table.



REFERENCES

For more information about the Import Errors table, search the Help Index for "Import Errors table."


Keywords          : kbusage IsmTxtd IsmProb IsmTxtfx IsmExl4 IsmExl5 
Version           : 7.0 97
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 20, 1999