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.
Copyright © 2020 EarthSoft, Inc • Modified: 30 Mar 2020