Export/Import: Invalid number of worksheets, 8 worksheets expected

Feb 11, 2014 at 6:59 PM
Edited Feb 11, 2014 at 7:03 PM
Hello, "Export/Import: Invalid number of worksheets, 8 worksheets expected", this is the error shown when i try to import any xls/xlsx file into mysql db. Now i have had successful attempts in importing these files earlier with the same codes , i dont know why they are not now.The only things i have changed are the worksheet column headings and worksheet name.i have cross checked them , they match .There is just 1 worksheet,no more than that. Sample file: stock.Changes made in my code
protected function expectedProductsHeading() {
        return array( "Sr No.", "Prod Type","ItemId", "ProdName", "Brand","DesignNo", "Colour", "Size", "Sale Code", "MRP", "Qty", "ImagePath" );

    protected function expectedWorkSheets() {
        return array('StockREport');