Results 1 to 5 of 5
  1. #1
    tym is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    13

    Unhappy Error 3027 when importing text file


    Got a weird one here...

    Up until recently (not exactly sure when) I've been absolutely fine importing text files into Access 97 with the import wizard, where the file extension is .log

    Now, every time I do it, I get Error 3027 unable to update as database/object is read only.

    if I change the filename to .txt it works, but if I leave it as .log I get that error.

    What in the sweet name of Christmas is going on!?!?!?!?!?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    anything could be going on, really. Anything from access corruption, to the obvious.

    For instance, if the file is .log, then obviously a 3rd party application is creating it and streaming data to it. So for instance, if the "someone" that's creating the log file happened to break their application for debugging purposes after the log file was created by the code, and then just quit their app without thinking, the data stream is considered still open by windows. Hence, windows won't even let you delete the file until the stream is closed, either by the app or some other means.

    That's what this issue sounds like.

  3. #3
    tym is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    13
    The log file is something I've created myself. It is downloaded from my ftpsite and imported into Access for processing. There's nothing keeping it open on my PC .

    If I rename the original file to .txt, it will import. If I copy the original and rename *that* it will import. If if rename the copy back to .log it won't...

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by tym View Post
    The log file is something I've created myself. It is downloaded from my ftpsite and imported into Access for processing. There's nothing keeping it open on my PC .

    If I rename the original file to .txt, it will import. If I copy the original and rename *that* it will import. If if rename the copy back to .log it won't...
    well then something must have changed, eh?

    here are some ideas that may expand your knowledge:

    *'read only' button checked when downloading from ftp?
    *something change with the download client app?
    *is the file 'read only' in the windows directory? (Alt+Enter on the file to find out)

    The alt that I can see here, is to automate the re-naming of the file with vb. vb has an internal function called NAME() that will do this.

    those are some ideas that may help ya. I'm out for now. That's all I have time for, in terms of helping here. good luck!

  5. #5
    tym is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    13
    The file is NOT read only.

    If I change the extension to .txt it will load fine

    if I change it back to .log it fails

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

Similar Threads

  1. Runtime Error 3027
    By jsbotts in forum Queries
    Replies: 4
    Last Post: 08-27-2011, 06:42 PM
  2. Importing a text file to access
    By Navop in forum Access
    Replies: 2
    Last Post: 11-11-2010, 07:15 PM
  3. Replies: 1
    Last Post: 11-05-2010, 04:31 PM
  4. Skipping headers when Importing a text file.
    By bullwinkle55423 in forum Import/Export Data
    Replies: 1
    Last Post: 09-01-2010, 03:25 PM
  5. Importing text file into Access Table
    By Anthony in forum Import/Export Data
    Replies: 13
    Last Post: 09-23-2009, 04:47 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