GetFirstConstMedia Error Upon Plotting

<< Click to Display Table of Contents >>

Navigation:  EnviroInsite > Frequently Asked Questions > Troubleshooting Error Messages >

GetFirstConstMedia Error Upon Plotting

The following error may occur, if data is missing, when attempting to open various plots in EnviroInsite.



Unable to cast object of type 'System.DBNull' to type 'System.String'.

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

 at ei_dblib3.ObsTbl.GetFirstConsMedia(String& sConst, String& sMedia, String& sFraction)


This is caused by NULL values in the fraction fields. Reproducing in EnviroInsite should give a log that shows exactly where NULL values exist.