Quantcast
Channel: OpenFlows | Water Infrastructure
Viewing all articles
Browse latest Browse all 39611

Wiki Page: Flowmaster - "Arithmetic operation resulted in overflow." when opening model.

$
0
0

  
 Applies To 
  
 Product(s):Bentley FlowMaster
 Version(s):08.11.01.03
 Environment: N/A
 Area: Other
 Subarea: 
 Original Author:Dan Iannicelli, Bentley Technical Support Group
  

 

 

 

 

 

 

 

Problem Description

User is getting the following Error in when opening a model in Flowmaster v8i. This wiki article will describe the problem and solution. The full error message is below. Here is the first part of the error:

"System.OverflowException: Arithmetic operation resulted in an overflow."

 

Full Error:

"TargetInvocationException Details

---------------------------

Press Ctrl-C to copy details to clipboard: 

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OverflowException: Arithmetic operation resulted in an overflow.

   at Haestad.Support.Support.HmIDCollection..ctor(Int32 capacity)

   at Haestad.Domain.DataObjects.Dao.DaoSupportElementManagerDataBrokerBase.ElementIDs(Int32 domainDataSetID)

   at Haestad.Domain.ModelingObjects.ModelingElementManagerBase.Elements()

   at Haestad.FlowMaster.Adapting.ProjectExplorer.ProjectExplorerTreeProjectNodeModel.GetChildren(ITreeNodeModel anodeModel)

   at Haestad.FlowMaster.Adapting.ProjectExplorer.ProjectExplorerTreeEditorModel.GetChildTreeNodeModels(ITreeNodeModel aparentNodeModel)

   at Haestad.FlowMaster.Adapting.ProjectExplorer.ProjectExplorerTreeEditorModel.ProjectClosingHandler(Object aobject, ProjectEventArgs apea)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Delegate.DynamicInvokeImpl(Object[] args)

   at Haestad.Framework.Application.ProjectManagerBase.OnProjectClosing(IProject aproject)

   at Haestad.Framework.Application.ProjectManagerBase.NotifyProjectClosing(IProject aproject)

   at Haestad.Framework.Application.ProjectBase.Close(ProjectProperties app)

   at Haestad.Framework.Application.ProjectBase.Close()

   at Haestad.Framework.Application.ProjectManagerBase.DropAndRestoreProject(IProject aproject)

   at Haestad.Framework.Application.ProjectManagerBase.OpenProject(ProjectProperties app)

   at Haestad.Framework.Application.HaestadParentFormModel.OpenProject(ProjectProperties app)

   at Haestad.Framework.Windows.Forms.Forms.HaestadParentForm.OpenFile(ProjectProperties app)

   at Haestad.Framework.Windows.Forms.Forms.HaestadParentForm.OpenFile(String asPath)

   at Haestad.FlowMaster.Forms.VegasParentForm.FlowMasterParentForm_Load(Object sender, EventArgs e)

   at System.EventHandler.Invoke(Object sender, EventArgs e)

   at System.Windows.Forms.Form.OnLoad(EventArgs e)

   at System.Windows.Forms.Form.OnCreateControl()

   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   at System.Windows.Forms.Control.CreateControl()

   at System.Windows.Forms.Control.WmShowWindow(Message& m)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

   at System.Windows.Forms.ContainerControl.WndProc(Message& m)

   at System.Windows.Forms.Form.WmShowWindow(Message& m)

   at System.Windows.Forms.Form.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

---------------------------

OK

---------------------------

 

Reason

This problem may be caused from corruption or errrors in the database. Follow the steps below to solve the problem.

Steps to Resolve

Option 1

The database should be compacted. To do this follow these steps.

1.) Open Flowmaster without opening the model file.

2.) Go to Tools > Database Utilities > Compact Database.

3.) When the Open menu appears, select the .MDB file.

4.) The Database file will be compacted and updated.

4.) Once this process is complete please reopen the Flowmaster file.

6.) The model should open as normal.

 

 

 

 

 


Viewing all articles
Browse latest Browse all 39611

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>