Solved

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

Posted on 2011-02-28
10
142 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
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 49

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
 

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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 49

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 49

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
This collection of functions covers all the normal rounding methods of just about any numeric value.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now