Error when validating a model or performing other operations in Storm-Sewer products: Object reference not set to an instance of an object.

  Product(s): SewerGEMS, CivilStorm, StormCAD, SewerCAD
  Version(s): CONNECT Edition, V8i
  Area: Output and Reporting

Problem

When validating, the following error message is displayed:

"Object reference not set to an instance of an object"

Solution

This is a generic error that data that is typically a result of data that is missing or outside of an acceptable range. Here are a few possible strategies and solutions:

  1. Try compacting the database. In CONNECT Edition, go to File > Database Utilities > Compact Database. In V8i, go to Tools > Database Utilities > Compact Database. Once you select the database file, choose the option to purge the model to save space.
  2. Try separating the model files (.stsw, .stsw.sqlite) and copying them to a separate folder. Then open the model from this folder. See if this helps.
  3. Try deleting the .DWH file associated with the model. If it is corrupted it could lead to issues.
  4. Look for cases where a catch basin's gutter shape is set to <None>. If found, assign the gutter shape and try again.
  5. Look for cases where a catch basin / manhole or any element shape is set to <None>.
  6. Use the Orphaned Nodes query to help locate elements that were not connected to anything, and remove them.

If the above does not help, try looking for connectivity and other issues using Network Navigator, or contact Technical Support by posting on the OpenFlows Forum.

Recommended
Related