Java exception when trying to load an Excel spreadsheet as data source
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Java exception when trying to load an Excel spreadsheet as data source
The above error occurred when I attempted to import properties from an Excel spreadsheet.
Any ideas on how to fix that.?
Solved! Go to Solution.
- Labels:
-
Data-Driven Testing
-
REST
-
Scripting
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @hazel_chua,
I did not get the same error but I remember I needed to download Microsoft access database engine 2016 redistributable to make it work with TC. You can give it a go.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No need to use Excel for this case.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@nmrao Not my call to make what file I use, it's from a client and they are using Excel. So, yes, I need to be able to connect to an Excel file that has multiple sheets in it.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Update on this issue. It seems like the formulae / VLOOKUP functions in the sheets are causing that Java issue. Many of the cells in the workbook are referencing other sheets and cells across the workbook. And that seems to cause the import / read of the Excel file to fail.
Tested with a dummy Excel file with 2 columns and 20 rows in only one sheet and that worked fine. But, unfortunately again, that is not what my client's Excel file is like.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure that the file has key, value pairs?
You check with your team and let them know the supported format.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@nmrao not the project environment properties. But the Excel spreadsheets do contain the data that is needed for the parameters of the tests to be run. The keys are the column headers and the values are the rows which should be simple enough, even though many of the cells contain references/formulae that utilises cells from other spreadsheets in the same workbook.
The one of the sample projects used in the learning videos here used simple Excel files as well. Just not the sort of complex, extensive ones that are found in the real world.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
