Solved

Error when trying to use a text file with two columns as a data source

Posted on 2011-02-28
10
145 Views
Last Modified: 2013-01-25
Hi!

I'm getting errors when I try to use a text file of 2.99 GB as data source. I get an error message telling me the file contains no data, even though I can open the file in other applications.

Looking forward to any hints on what may be causing this.
0
Comment
Question by:Evert Jor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 34995217
Try splitting that big file in some smaller chunks and import/attach one by one.

/gustav
0
 
LVL 6

Expert Comment

by:JVWC
ID: 34995678
Some discussion here may assist:
http://www.experts-exchange.com/Databases/MS_Access/Q_21306710.html

Are you trying to import the data, or as your question suggests, using this as a data source?
As Cactus data suggests, splitting this into smaller chunks may reveal your problem.

Cheers
JC
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34999934
Yes, please clearly describe specifically what you me when you say: " I try to use a text file..."
"*Use* a file"?
Use a file how? in what application, ...etc
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Evert Jor
ID: 35006032
Hi boag2000. The information you request regarding details of which application I use is listed beneath the question, as well as above. Data source can mean numerous things. In this case it is simply a plain text file with two columns containing data.
0
 

Author Comment

by:Evert Jor
ID: 38750180
Hi, sorry for the delay.

It is a 2.99 GB text file containing data. When I'm trying to use the "Connect to datasource" I get the error. I'm not trying to import the data into access since there is a maximum limitation on the number of records in Access.

I will try it in the 64 bit version of Access instead to see if that works.
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 38750212
I believe my original comment is still valid.

Copy a small portion of the file - some hundred KB - and import/attach that.
If it works, your issue is a too large file for Access.
If it doesn't, you will have to adjust the file somehow, no matter the size/length of it, until success. At that point, try with the full file (modified). If that fails, you are back to my original comment.

/gustav
0
 
LVL 6

Expert Comment

by:JVWC
ID: 38750399
I tend to agree with CD, file size is most likely the issue.
Is your data file csv or txt, or some other format?
Can you also elaborate on "Two columns of data"

Cheers
JC
0
 

Accepted Solution

by:
Evert Jor earned 0 total points
ID: 38798455
Hi Cactus_data.

The number of records is to large for MS Access. The number of maximum records is approx. 255 000 (or a bit less). If you use blobs to store data this will make it possible to store more than 2.99 GB. My problem is to many records. That is why it's not possible to import it in chunks either.

Connecting to an external database with higher capacity will often solve it. Did you get that?

The problem now is that that doesn't work either.
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 38798508
> The number of records is to large for MS Access.
> The number of maximum records is approx. 255 000 ..

No. Access can easily handle that count of records. Problem is the total file size which - as you have seen - Access can't grasp.

You still haven't told if the simplest solution - to split the file into smaller chunks - works for you.
Of course, importing/attaching the file to, say, SQL Server may present a work-around but that was not your original question.

/gustav
0
 

Author Closing Comment

by:Evert Jor
ID: 38817998
Experience.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question