EnviroInsite Forum

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Error loading data - Specified cast is not valid


Senior Member

Status: Offline
Posts: 271
Date:
Error loading data - Specified cast is not valid
Permalink  
 


I'm getting the following error message when I try to connect to my database.

 

Get Value

Specified Cast is not valid

at System.Data.Odbc.OdbcDataReader.GetDouble(Int32 i)

at ei_dblib3.eiObsTbl.GetValue()



__________________


Senior Member

Status: Offline
Posts: 271
Date:
Permalink  
 

The way to decode this is to see first that it says “GetValue”. That means it’s trying to access data from the Value column of the Observations tab. “Specified cast is not valid” means that it’s finding something other than a number in that column that’s causing a problem. "GetDouble" on the next line tells you that it's looking for a number in that column. Likely, you either left the cell blank or put a non-numeric character in there.

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard