Need help working from home with your Bentley software? We're here to help - click here

Error message generating report: Could not find file "C:\Program Files (x86)\Bentley\WaterCAD\x64\QuadrantCurvesPredefined.txt"

Product(s): WaterGEMS, WaterCAD
Version(s): 10.02.00.XX
Area: Modeling


When trying to print a report from the Pump Definition dialog, the following error message occurs:

System.IO.FileNotFoundException: Could not find file "C:\Program Files (x86)\Bentley\WaterCAD\x64\QuadrantCurvesPredefined.txt".

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamReader..ctor(String path)
at Haestad.Idaho.HAMMER.Integration.FourQuadrantCurveWriter.QuadrantCurveTextFileReader.ReadQuadrantCurveData(String filename, ArrayList pumpCurves, ArrayList turbineCurves, Boolean includeOnlyValidCurves, Hashtable pumpSpecificSpeedUSToIndexMap, Hashtable turbineSpecificSpeedUSToIndexMap)
at Haestad.Idaho.HAMMER.Integration.FourQuadrantCurveWriter.QuadrantCurveTextFileReader.LoadQuadrantCurveData(String sourceFilesDirectory, ArrayList& pumpCurves, ArrayList& turbineCurves, Boolean includeOnlyValidCurves)
at Haestad.Idaho.Library.FourQuadrantCurveLibrary.LoadQuadrantCurves(IProject project, ArrayList& pumpCurves, ArrayList& turbineCurves)
at Haestad.Idaho.Library.FourQuadrantCurveLibrary.GetCurveChoiceList(IProject project)
at Haestad.Water.Forms.EditorModel.Components.Curves.PumpDefinitions.PumpDefinitionEditorModel.HandleSpecificSpeed(IFieldDefinition fd, Int32 id)


This issue occurs because of missing files related four-quadrant curves in the installation folder. While four-quadrant curves are not used in WaterGEMS and WaterCAD, there is a Transient tab in the Pump Definition for times that a model might be opened in HAMMER to run a transient analysis. 

To resolve this issue, find a copy of the files QuadrantCurves.txt and QuadrantCurvesPredefined.txt. If you have HAMMER installed, you can find these files at C:\Program Files (x86)\Bentley\HAMMER. If you don't have these files, you can download then from this link (must be signed in first.) Alternatively, you can contact Bentley Technical Support to get these. 

Once you have these files, browse to C:\Program Files (x86)\Bentley\WaterCAD or C:\Program Files (x86)\Bentley\WaterGEMS and copy the files to this location. Also open the "x64" folder and copy the files there as well. Once that is done, the error should no longer occur.