#901·alasql

On Passing empty excel file throw error: Cannot read property 'split' of undefined

Author: amitaurasCreated Jul 11, 2017Updated Sep 20, 2026
LabelsHelp wantedBug: Code provided to reproducedGood first issue

When we try to upload an empty excel file it throws error in console like following

Uncaught TypeError: Cannot read property 'split' of undefined
    at alasql.js:15106
    at FileReader.reader.onload (alasql.js:3383)

Here is a jfiddle link where we can try uploading empty excel file and in the console it thrown error: https://jsfiddle.net/amitauras/3k8j20ds/

Please look into the same and let me know if there is any solution to the same.