ACC: Error Message When Importing Informix Delimited Text File

Last reviewed: May 28, 1997
Article ID: Q99406
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you attempt to import an Informix delimited text file that uses the pipe (|) symbol as a delimiter, you receive the following error message:

   Name " contains invalid characters

CAUSE

When you export in Informix as text delimited and you specify the pipe symbol as the delimiter, Informix adds an extra pipe symbol at the end of the line. When you import this file to Microsoft Access by specifying "First row contains field names," Microsoft Access assumes there is another field after the last pipe symbol. Since the value is null, Microsoft Access returns the above error message.

RESOLUTION

  • Open the file in a text editor and add a dummy name after the last pipe symbol. After you import the file, you can delete this dummy field.
  • Clear the First Row Contains Field Names check box when you import the file. After you import the file, delete the first row of the table (which contains the field names instead of data). Then, switch to Design view and modify the table's field names.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a text file in Microsoft Windows Notepad as follows:

          A|B|C|
          1|2|3|
    

    Place a pipe symbol between each character. The pipe symbol is usually found on the backslash (\) key on your keyboard.

  2. Save the file as INFORMIX.TXT.

  3. Open a database in Microsoft Access.

  4. From the File menu, choose Import.

  5. Select Text (delimited) as your data source and choose Import.

  6. Select the INFORMIX.TXT file that you created in step 1. Choose OK.

  7. The Import Options dialog box appears. Select the First Row Contains Field Names check box, then choose the Options button.

  8. In the Field Separator combo box, type the pipe symbol and choose OK. The above error message appears.

Informix is manufactured by Informix Software, Inc., a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.


Keywords : IsmTxtd kb3rdparty
Version : 1.0 1.1 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.