Solved

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

Posted on 2011-02-28
10
144 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:EvertJor
[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
Industry Leaders: 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:EvertJor
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:EvertJor
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:
EvertJor 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:EvertJor
ID: 38817998
Experience.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

734 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