Alasql: Uncaught SyntaxError: Parse error on line 1:

Created on 4 May 2017  路  3Comments  路  Source: agershun/alasql

I am receiving an error when I try to load an excel CSV file, the error i am receiving is:
image
I am just building a simple webpage that allows me to compare two database tables from different environments to find differences.

I export the tables from Toad as an Excel CSV and then load them in using this line of code: alasql('SELECT * FROM FILE(?,{headers:true})',[event],function(data){ and this seems to be the particular line that error is occurring on, the weird thing is that it only throws the error for one particular CSV file.

I have been able to successfully load multiple other CSV files but one particular CSV file is causing the issue. Any help would be much appreciated.

! Bug Code provided to reproduced

Most helpful comment

I actually figured the issue out I did some research and it ends up that one of the columns was using a reserved word that I needed to escape and that's why it was throwing the exception.

All 3 comments

I have been able to successfully load multiple other CSV files but one particular CSV file is causing the issue. Any help would be much appreciated.

Please provide the file that is causing the problem

Sure thing
246tbx-DEV.zip

I actually figured the issue out I did some research and it ends up that one of the columns was using a reserved word that I needed to escape and that's why it was throwing the exception.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mwhebert picture mwhebert  路  3Comments

DickSwart picture DickSwart  路  6Comments

peon501 picture peon501  路  5Comments

carloszimm picture carloszimm  路  3Comments

thierrygervais picture thierrygervais  路  6Comments