"Row index provided is out of range" error in Flextables

Product(s): WaterCAD, WaterGEMS, HAMMER 
Version(s): 10.00.00.50
Area: Other

Problem

When attempting to view a Flextable, the program crashes with the below error details

System.ArgumentOutOfRangeException: Row index provided is out of range.
Parameter name: rowIndex

   at System.Windows.Forms.DataGridViewRowCollection.GetRowState(Int32 rowIndex)
   at System.Windows.Forms.DataGridView.GetOutOfBoundCorrectedHitTestInfo(HitTestInfo& hti, Int32& mouseX, Int32& mouseY, Int32& xOffset, Int32& yOffset)
   at System.Windows.Forms.DataGridView.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseMove(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Solution

Try the following troubleshooting steps to resolve this:

1) Reset any sort or filter you may have enabled in the flextable.

2) If the problem occurs in a certain flextable, try creating a new flextable under "tables - hydraulic model" or "tables - shared" (within the Flextable manager) for the same element type, with the same columns added. See if the problem still occurs.

3) Try copying only the .WTG and .WTG.SQLITE files associated with the model in question, to an empty folder on your local hard drive (such as a folder on your desktop), reopen the model from there, and see if that helps.

4) Make a backup copy of the model files, open it, then navigate to File > Database > Compact. Select the .SQLITE file associated with the model. Once done, try reopening the model and see if the problem still occurs.

5) Copy only the .SQLITE file somewhere, select database files from the "files of type" dropdown in the file open dialog, then select that .SQLITE file. This will load only the hydraulic data, without the presentation settings stores in the .WTG file. If the problem then no longer occurs, this narrows the problem down to the .WTG file.

If the above does not help, contact Technical Support with the following additional details:

1) Does this occur every time you perform some specific task in your model, and if so, what task/steps?

2) Does the problem occur in other models, such as one of the ones included in the "Samples" folder within the product installation folder?

3) If the problem can be reproduced with a certain series of steps each time, send a copy of the model files (zipped). This can be done via the Forum (post on the forum first) using these steps: Sharing Hydraulic Model Files on the OpenFlows Forum

See Also

Recommended
Related