Link to home
Start Free TrialLog in
Avatar of aeolianje
aeolianjeFlag for United States of America

asked on

Is there a size limit for .csv files?

We have an application that is exporting 1,254,236 records to a .csv file.  The file size is 295,788.  Excel brings up an error msg that it was unable to load the full file.  I have a batch job that successfully splits the file into smaller ones which works ok.  However, when I try to reconcile the counts, it doesn't match the number exported by the application.

Is there a size limit for .csv files?

Thanks for your help.
je
Avatar of John
John
Flag of Canada image

I do not think you are hitting a size limit, but a record limit. For Excel 2010, the number of records is limited to 1048576 rows and you exceed that.
Avatar of Kimputer
Kimputer

There's no limit for the .csv file itself (other than the max file size of the OS), it's Excel who has to read the data. And therefore the limits of Excel come into play

Excel 2003 and before: max 65,536 rows
Excel 2007 and above: max 1,048,576 rows

I therefore think you might be using 2003 or earlier and the split files are over 65,536 rows, and you lose the amount over that, times the number of files you imported.
No, there is no hard size limit on .csv files.. The limit in any scenario would be the file system / hdd size.  However, the application used to open these files MIGHT give you a problem.  ie opening a 10gb .csv file in excel.
If you want to open csv files of a large size you can use a different program to open them. I use Notepad++. It is a free open source program that is very easy to use.

http://notepad-plus-plus.org/
ASKER CERTIFIED SOLUTION
Avatar of Tony Giangreco
Tony Giangreco
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Using an arbitrary number of characters per record of 256, the file would be 321Mb in size. This is large for most systems, but if you need a text editor that will handle this size of file, I use UltraEdit. It has no size limit.

Otherwise, with Excel, you are limited by the Excel limit (1048576) as I noted much further back.
FYI, I've been using Ultra Edit for 15 years. It's the best text editor I've ever seen.
Glad I could help.