Results 1 to 4 of 4
  1. #1
    Eeshan is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    5

    Emport Text file Error

    Hi,


    Please help me to solve this error,

    while importing text file m getting error as mentioned below picture..



    i didnt get any solution and why it happens.....

    Click image for larger version. 

Name:	Import Error.jpg 
Views:	5 
Size:	103.8 KB 
ID:	12996


    Thanks & Regards,
    Eeshan Singh

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You're importing an excel file, one of the fields in that text file is related to a primary key field or a field that does not allow duplicates in your table. in other words let's say you have:

    1/1/2013,CompanyA
    1/1/2013,CompanyB

    in your text file and the date fields is listed as a primary key, or does not allow duplicates, your file will error out because you have more than one record with the same value in that field.

    Look at the table you're importing too and see which field(s) contain your primary key then look at your text file and see if that field is properly set up.

  3. #3
    Eeshan is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    5
    Thank you for your support.

    Suppose i want to import text file which fields includes duplicate. will it import succussfully ....?

    If No, then why....? i want to import that text file.

    data as per the below format

    1/1/2013,CompanyA
    1/1/2013,CompanyB
    2/1/2013,CompanyA
    4/1/2013,CompanyB
    5/1/2013,CompanyB

    m eagerly waiting for this ans..

    Regards,
    Eeshan Singh

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    If you want to import a text file that has duplicates you have to modify the design of your target table.

    If you have a primary key in your target table, remove it
    If you have a field that does NOT allow duplicates, change it so that it will

    I don't know the design of your target table but that's the problem with your import. Primary keys are the first thing to look for though because typically people do not mess around with the allow duplicates setting.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error when importing text file
    By narendrabr in forum Import/Export Data
    Replies: 1
    Last Post: 01-11-2013, 03:27 AM
  2. Replies: 2
    Last Post: 12-27-2012, 09:37 AM
  3. Import Text File Error with quotes being stripped
    By examart in forum Import/Export Data
    Replies: 2
    Last Post: 10-08-2012, 08:11 AM
  4. Replies: 3
    Last Post: 07-30-2012, 02:16 PM
  5. Error 3027 when importing text file
    By tym in forum Access
    Replies: 4
    Last Post: 12-12-2011, 12:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums