Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in retrieving Cell values from Excel file.

 
Ashutosh_Natekar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one major problem in accessing the data from excel through JDBC -ODBC bridge. Even if there is data in the Excel cell, I sometimes retrieves NULL in the java code. Why this might be happening can anybody tell me??
please reply ASAP.
Ashutosh.
 
rani bedi
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you show us the code?
 
Mohamed Yousuff
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Null will be returned if the datatype do not match. For instance when the table was created the field would have been declared as int, but you would somehow entered string values in the xl sheet. In such a case you cannot even append records to the table.
 
Ashutosh_Natekar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by parmeet bedi:
can you show us the code?

See, basic thing is, there is no problem in the code, as it works fine, but sometimes behaves absurdly. IT reads the cells and sometimes it doesnt. So what might b the reason?
 
Matthew X. Brown
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you resolve this issue-I have an identical problem, and would like to know if/how you resolved it. I have data in a cell with a zero starting the number, and it doesn't seem to like it-it returns a null.
 
satish bora
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the format of the Excel Cells.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic