It is currently Fri Sep 10, 2010 1:25 pm

What file format does EasyTable support?

A forum for the users of EasyTable. This is a community forum for discussion on using the component. This forum is not monitored by CPPL staff.

If you need active support you can get it from our subscribers forum. Access to subscriber forums requires a current support subscription for the product you want support for.

What file format does EasyTable support?

Postby craig » Fri Nov 13, 2009 9:46 am

A few people have emailed to say that they are getting erros when uploading the component. All of them have so far have been because of errors in the CSV file they were using - CSV file format (RFC4180) is defined here, a more readable summary is on Wikipedia.

The key part of the error message occurs at very begining:

Code: Select all
Data insert failed for table: XX in updateETTDTableFrom()
Possibly your CSV file is malformed


EasyTable only supports CSV files and it does this using PHP's method fgetCSV method. If the fgetCSV throws up an error you will see that line "Possibly your CSV file is malformed"

The first thing to check is the CSV file meets the definition. The best way to do this is using a Unicode aware text editor that can search for & display invisible characters in your CSV file, ( and no Notepad isn't good enough ). I personally recommend BBEdit but I'm sure there's something on Windows/Linux environments that does a similar job.

Things to look out for
  • control characters that need to be encoded first
  • comma's in the body of a field that aren't properly encased
  • the wrong delimiter used for fields eg. a semi-colon ; rather than a comma

To determine if your file is the source of the problem try downloading the sample CSV file in our downloads area and uploading it to your website. If that works then there's a reasonable chance that your CSV file is malformed as the error message indicates.

Failing all of that, you can send the file in question to our subscriber support forum and we'll take a look at it for you.
Craig Phillips
Blog | Twitter | Business
Variously described as a lost/wandering technocrat
craig
Site Admin
 
Posts: 85
Joined: Tue Oct 27, 2009 8:42 am

Return to EasyTable Community Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron

User Menu

Login Form

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 19 on Fri Apr 09, 2010 3:16 pm

Users browsing this forum: No registered users and 1 guest