The error is in the line - [color=#008040:a2gorjwn]String z = datatable.getCellData("Employee", "Emp ID", 3);[/color:a2gorjwn]
Below is the output error -
[color=#0000BF:a2gorjwn]java.lang.NullPointerException
row 3 or column Emp ID does not exist in xls
at Xls_Reader.getCellData(Xls_Reader.java:70)
at Reading_xls_files.main(Reading_xls_files.java:7)[/color:a2gorjwn]
what is at TestData.xlsx (sheet name: "Employee" ). send a screen shot.
xls_reader cannot read the file.
[attachment=0:g0i74o3h]TestData.xlsx[/attachment:g0i74o3h]Please find attached the spreadsheet.
Thank you so much. The error is not coming now with the excel sheet which you gave. But I could not figure out what was wrong with the excel which I had prepared. Can you please let me know so that I dont repeat it again.
i just deleted the columns and made it again. it must have been some formating issue.