problems with some database in .csv format

francisco cobos

Member
Licensed User
Hello,

I have the following problems with some database in .csv format:
Wen I run the project, apears this message:
Table1.loadCSV("file",";",true)
Length cannot be less than zero, parameter name: length, continue?

The thing is that if I answer "yes", the table is loaded perfectly and the program works without problems. Also, if I save the table with "Table1.saveCSV" there is no problem anymore...

It is a real problem or is a bug?

Thank you for your help
 

Erel

Administrator
Staff member
Licensed User
Make sure that the csv file doesn't include any empty lines at its end.
Please upload the file if it doesn't help.
 

fwc320

New Member
And what about a csv file downloaded from a web site that can contain (or not...) empty lines at the end ? Is there a way to avoid this error message ?
 

RandomCoder

Well-Known Member
Licensed User
I had this problem and my way of solving it was to use an error lable to catch the fault but then proceed as normal.

Regards,
RandomCoder
 
Top