Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenFlows | Water Infrastructure
  • Product Communities
OpenFlows | Water Infrastructure
OpenFlows | Water Infrastructure Wiki Error in ModelBuilder: Error: Unable to open table. An item with the same key has already been added
    • Sign In
    • OpenFlows | Water infrastructure Wiki
    • +OpenFlows CivilStorm
    • +OpenFlows CulvertMaster
    • +OpenFlows FLOOD
    • +OpenFlows FlowMaster
    • +OpenFlows HAMMER
    • +OpenFlows PondPack
    • +OpenFlows SewerCAD
    • +OpenFlows SewerGEMS
    • +OpenFlows StormCAD
    • +OpenFlows WaterCAD
    • +OpenFlows WaterGEMS
    • +OpenFlows WaterSight
    • +OpenFlows WaterOPS
    • +OpenFlows SewerOPS
    • +Bentley HEC-PACK
    • +General
    • +Help and Documentation
    • +Installation
    • +Licensing / Activation
    • +Integration
    • -Modeling
      • "File not found" message when trying to open model file
      • Adding check valves and reversing pipes
      • Adding custom parameters and equations with Multi Species Extension (MSX)
      • Automatic inlet spacing
      • Can a model be detached from a DWG when integrated with AutoCAD?
      • Can demand data be exported to an Excel file for use in another model?
      • Configuring TCV relative closure patterns for EPS
      • Constraint based design only on certain elements
      • Copying properties of existing elements using Prototypes
      • Creating selection sets based on profiles
      • Elements seemingly changing to default settings, zero status, inactive
      • Error in ModelBuilder: Error: Unable to open table. An item with the same key has already been added
      • Error opening existing model: "Parameter name: Index was out of range"
      • Error performing standard tasks: "Value does not fall within the expected range"
      • Error splitting pipes: "1: no such column: Calibrator_RoughnessGroupID"
      • Error when updating model with ModelBuilder: Index was outside the bounds of the array.
      • Finding customer meters not connected via a lateral
      • Fire flow error message: "Fire flow reference to a deleted selection set."
      • Flow choking effect with turbines as speed increases
      • Global Editing Element Information
      • How do I design certain pipes to have different design constraints from those specified in the Default Design Constraints?
      • How do I model parallel fixed head (target head) variable speed pumps that are controlled by flow in a downstream pipe?
      • How do I reverse the start and stop node for a pipe, conduit, gutter, etc...?
      • How is the headloss for a weir calculated in the control structure for the storm and sewer products?
      • How to create a selection set of elements within a polygon in ArcMap
      • How to move, scale or rotate a model to the correct location?
      • Hydraulics and Hydrology Video Series
      • Identifying elements based on user notification
      • Identifying overlapping elements between two selection sets
      • Is it possible to model a fixed flow VSP where the flow changes over time?
      • Keeping a Hydraulic Model in Sync with a GIS
      • Limiting conduit design to only certain sizes
      • Modeling a combined storm/sewer collection system and potable water distribution network
      • Modeling a Drainage Ditch
      • Modeling a gutter junction
      • Modeling different scenarios with downstream pipe for a pump or valve
      • Modeling Variable Speed Pumps (VSP) and Variable Speed Pump Batteries (VSPB) In Storm and Sewer Products
      • Modeling variable speed pumps (VSP’s) in parallel
      • Options for modeling an outflow that varies with pressure
      • Order of constrained based design priorities for StormCAD (GVF-Rational) and SewerCAD (GVF-Convex)
      • Required Input properties for using a Bentley Hydraulics and Hydrology application integrated with ArcGIS (ie. Data Model)
      • Running a fire flow analysis in EPS (a fire that lasts a certain duration)
      • Select a desired element from overlapping elements
      • Storage volume of wetwell and pipe
      • The following error occurs with the MicroStation-integrated version a OpenFlows product, like WaterCAD or StormCAD: "Unknown key-in or command".
      • The program hangs when opening a model or switching scenarios
      • Troubleshooting stability problems with PRVs or PSVs in parallel
      • Understanding the "Boundary Condition Type" for an Outfall
      • Understanding the "Design point" (1 point) pump definition type
      • Unknown Command "<command>" error message occurs when trying to run an operation in Bentley product when integrated with AutoCAD
      • Using Catchment Delineation
      • Using the IN operator to query for elements in a set list of criteria
      • Using the Pipe Matching and Matchline Offset Design Constraints
      • Using the Time Browser
      • Using Zoom Dependent Visibility to cause elements to disappear at certain zoom levels
      • +WaterObjects.NET - Extending the capabilities of your OpenFlows product
      • Zero (or near-zero) headloss or flat profile appearance with pressurized conduits
    • +Layout and Data Input
    • +Calculations
    • +Output and Reporting
    • +Other
    • +OpenFlows Product TechNotes And FAQs
    • Check boxes do not appear in tables such as Control Sets dialog
    • Consuming ContextCapture production files within your hydraulic model
    • Convergence NOT achieved Message when computing StormCAD or SewerCAD model
    • Converting Junctions or Hydrants to Isolation Valves
    • Displaying Shapefile Labels (Text) As a Background
    • Enhancing OpenFlows multi-user workflows with ProjectWise Share
    • Error "System.TypeInitializationException"
    • Error 32768 when opening model while integrated with ProjectWise
    • Errors installing patch set
    • Error when opening PondPack: "Object reference not set to an instance of an object" or "Application has generated an exception that could not be handled."
    • Error when saving or validating: System.AccessViolationException: Attempted to read or write protected memory.
    • File Open Dialog does not appear
    • Flextable Report of Multiple Element Types
    • Get to know OpenFlows CONNECT Edition
    • Get to know WaterGEMS, WaterCAD and HAMMER CONNECT Edition
    • How do I import/export multiple point pump curve pump definitions into a model using ModelBuilder?
    • How do you save backup files, so they save at different times and multiple levels?
    • How does the intermediate geodatabase (.MDB or .GDB) file function with ArcMap and ArcGIS Pro integration?
    • How to Delete Engineering Libraries if you get a message about a Read-only database
    • How to receive alerts on new version availability?
    • How to register DAO360.dll or a dll file?
    • How to search using wild cards on a sqlite type of database
    • How to See Hebrew or Arabic text in a .DXF file that was exported from WaterGEMS/WaterCAD
    • Hydraulic grade discontinuity at steep pipes or across nodes (frontwater analysis)
    • I get a red user notification that says, "Inlet guttter mannings n should be greater than 0".
    • Importing .HLB library files from old product versions into format used in the V8 product versions
    • Importing External Data in Geographic Coordinate Systems
    • Importing storm data and other library information from older versions
    • Changing element symbols in the AutoCAD platform
    • Interchange
    • Locating OpenFlows product error log file
    • Locating OpenFlows Product Version Number and License Information
    • Model backward / forward compatibility
    • Multi-user Workflows
    • Modeling a closed loop system
    • Modeling a flow split (diversion) with the SewerCAD or StormCAD numerical solver
    • Modeling turbine load acceptance plus load rejection
    • Multiple CN numbers for a catchment and multiple catchments with a single outlet node
    • Network Navigator Trace Upstream/Downstream does not return any elements
    • OpenFlows software numerical solver theory
    • Percent Connected Impervious Areas and Percent Unconnected Impervious Areas
    • Performing a hydrosanitary design in WaterGEMS or WaterCAD
    • PondPack user notification: "The composite outlet structure is either not selected or deleted."
    • Pressure pipe vs. conduit between pump and wetwell
    • Print Preview > Fit to Page shows blank page or Reports will not print
    • Properties not working when using MicroStation integration with ProjectWise
    • Properties, Flextables, user notifications, or other dialog is missing or will not open or appears to freeze the program
    • Properties, user notifications, or other tool managers not showing up in Integrated version of AutoCAD
    • Reusing Pump Definitions (Import / Export)
    • Reversing orientation of Pipes and Conduits in Bulk
    • Saving a hydraulic model when using the AutoCAD platform (i.e. integrated)
    • Important License Update for OpenFlows Users
    • Setting the invert elevation for multiple conduits coming into one manhole
    • Simple Controls vs. Logical Controls
    • Sorting and relabeling a flextable based on upstream-downstream order
    • Source of the default Specific Speed for pumps and turbines
    • Procedure for finding the curb length needed to capture 100% of gutter flow in a curb inlet with a continuously depressed gutter with no clogging
    • System.Reflection.TargetInvocationException crash when trying to open the application
    • Test Wiki Page - A1
    • Text, cells/blocks and line styles do not display correctly in a DXF background layer
    • The flow annotation (label) in my WaterGEMS for ArcMap isn't reflecting the value displayed in my Geotable or Flextable
    • The total area in the CN/Area Collection does not equal the total catchment area
    • Time tolerance setting in SCADAConnect Simulator
    • Troubleshooting ArcMap Integration
    • Turbine Efficiency
    • Understanding Flow (Additional Subsurface) and Flow (Additional Carryover)
    • Upcoming training and release dates for OpenFlows products
    • User notification "Downstream TW out of range..."
    • User notification "Pump exceeds the maximum operating point specified for the pump curve"
    • User Notification - The captured surface flow at this node does not connect a valid subsurface network. The flow is lost from the system.
    • User Notification: "There is an error in the data for this pipe. The associated data is incorrect"
    • User Notification: Cross section maximum elevation is above the maximum headwater elevation
    • User Notifications: "Pump On elevation is not in the range of upstream ...." and "Off elevation of pump is lower than ..."
    • Using batch pipe split to fix nodes that overlay a pipe instead of connecting to it
    • Using PondMaker with different tailwater for each return event
    • Valve "Status (Initial)" Definitions
    • Velocity Calculations and the Average Velocity Methods in SewerCAD and StormCAD
    • Viewing graph data for multiple scenarios
    • Water age results in a pipe are different from the age in the downstream junction
    • Water Loss Management
    • Water quality Analysis during transient events
    • WaterGems Tips
    • What are the limitations of importing/exporting EPANET files?
    • What is the dotted line that is associated with the isolation valves? Can I turn them off?
    • What's new in WaterCAD, WaterGEMS and HAMMER V8i SELECTseries 6 with CONNECT Integration?
    • What's New in WaterOPS CONNECT Edition 2.3 (Build 10.02.03.06)
    • When the user changes the fluid, why doesn't the calculated pump head change?
    • Working From Home With Your OpenFlows Software
    • "An error occurred when trying to calibrate the model"
    • "COM Error Not Documented" when opening OpenFlows product
    • "Default license feature configuration not found. Product features may be limited. Please run the License Administrator."
    • "The Depth-Flow, Depth-Flow (Simulated Variable Speed) and Volume-Flow pump definition types are unsupported"
    • "Unable to assign attribute ... for element because enumeration value ... is not valid."
    • Add custom data to profile with User Data Extensions
    • After computing a model with the SWMM solver, what does the following warning mean: "Maximum depth increased for node CB-XX"?
    • After computing the model, the pump efficiency results are listed as N/A
    • After running loadbuilder I get a message that says "The layer <Layer_Name> could not be opened."
    • Arch section shape modeling limitations
    • At what point does OpenFlows product license usage start when integrated with MicroStation?
    • Background image quality poor on some computers or Crash when opening models with background layers
    • Blocky stepwise pattern is displayed instead of a continous smooth pattern that was entered when using the SWMM engine
    • Calculating ellipse coefficients in CulvertMaster
    • Calculation of Side Flow factor with grate width less than gutter width
    • Can User Data Extensions be shared between elements in a model?
    • Catch basins imported as manholes from LandXML
    • Change in results before turbine load rejection occurs
    • Conduit "Size" attribute does not appear correctly in annotations or reports
    • Custom quadrant curve not being recognized
    • Date-time based query not working
    • Default license configuration not retaining setting
    • Do inactive elements count against the license count?
    • Does HAMMER support initially negative pressures?
    • Does the friction method affect local minor loss in pipes?
    • Does WaterGEMS and WaterCAD report pressures as gauge pressure or absolute pressure?
    • Efficiency Curve vs. Wire-to-Water Efficiency Curve
    • Error importing a LandXML file from StormCAD into Civil 3D "A pipe or conduit had an unsupported geometry"
    • Error message when validating model: "Elevation (Relative) values within the Irregular shape definition must be non-negative."
    • Error message: "Unrecognized database format ..." when trying to open model
    • Error Saving: "Custom results path is invalid"
    • Find if pump operates off of the pump curve during an automated fire flow scenario
    • Flow arrows are not included in an exported DGN file when using the Save Symbology option in the MicroStation platform
    • Flow from pump is delayed after pump startup
    • HAMMER error: "Zero initial head from pump (turbine). Change at least one of the heads at the pump ends of the adjacent pipes."
    • HEC-22 2nd edition energy loss calculations with the Implicit solver
    • How are "pipe sets" and "nodes of interest" used in a flushing analysis to get auxiliary results at other elements?
    • How can I see the amount of inflow or outflow occuring for a particular surge tank during the transient simulation in HAMMER?
    • How can I speed up computing a model that I need to extract elevations from - it is taking a long time to process in TRex?
    • How do I filter a column in my flextable using a custom query that retrieves all records with a <None> attribute?
    • How do I know if and when my pond is overtopping and how to quantify it?
    • How do I save my model files when working in the ArcMap or ArcGIS Pro platform?
    • How do the channel slopes and velocity effect the headloss formulas in SewerCAD and StormCAD?
    • How do you define the starting conditions of the transient simulation?
    • How does StormCAD handle gutter flow from an active catch basin to an inactive catch basin?
    • How does the "Find Segments by Element" feature work in a criticality analysis?
    • How does the diameter of an isolation valve effect the calculated results?
    • How to add comments on custom pump and turbine quadrant curves
    • How to find volume of water coming from a trace element?
    • How to open a .PRNX report file created on exporting custom report in OpenFlows product
    • Hydropneumatic tank atmospheric pressure not changing results
    • Hydropneumatic tank profile animation and time history shows zero gas volume
    • Initial surge when using turbine load acceptance operating case
    • Initial turbine HGL the same as the final HGL after load acceptance
    • Irregular Weir Flow Calculations in a Composite Outlet Structure
    • Is it possible to create old PondPack style text reports?
    • Is it possible to have a storm event start at a different time than the model simulation?
    • Is it possible to use point cloud information to populate elevations in Terrain Extractor (TRex)?
    • Is there a recommended level of Skelebration for different modeling conditions?
    • Is there a way to model a rectangular pipe in WaterCAD, WaterGEMS or HAMMER?
    • Junctions are created on top of one another after using ModelBuilder with the GIS-ID property
    • Learning Resource Guide for WaterSight
    • License usage in the ArcMap and ArcGIS Pro platform
    • LoadBuilder applying demands or loads to inactive elements
    • LoadBuilder importing zero flow loads
    • Log4net issues appear in security scans for OpenFlows products
    • Long time to load background layers
    • Manage Pump Speed Series
    • Manage Pump Time Series
    • Managing large number of scenarios
    • Missing Young's Modulus and Poisson's Ratio values in the material library
    • Modeling closed or pressurized pipes in PondPack
    • Modeling culverts in series in CulvertMaster
    • Modeling treatment for pollutants at nodes or ponds in SewerGEMS and CivilStorm
    • MrSid files are not available as a background layer type or an error is generated when loading MrSid files
    • My scenario label is not in my report preview when I run the report builder
    • +OpenFlows Academic Books
    • Pipe Renewal Planner Vs OpenFlows WaterCAP
    • Pipes connecting to the wrong element after submodel import
    • Pipes not merging when using Skelebrator with series pipe merging
    • PondPack error: Unable to open user roster
    • Post calculation processor tool error: The result property and output property have no common supported element types.
    • Problems opening GEOPAK Drainage file exported from StormCAD
    • Purpose of the Virtual Flow Depth Calculation Option
    • Query, alert or formula UDX not working correctly with "=" (equals)
    • Red user notification, "Post engine loading process encountering unexpected data. Please rectify any validation errors and try again."
    • Reporting pressure available at the exact total needed fire flow
    • SCADAConnect in SewerGEMS
    • Series Pipe Merging in Skelebrator not working for pipes with zero diameter
    • Sharing Queries for use in other models
    • Small difference in gutter worksheet result between US and SI units
    • The concentration at the stop node directly after a constituent source in a tank is decreasing rapidly
    • The control symbol, check valve symbol, and dashed lines connecting customer meters, isolation valves, and SCADA elements are not visible in the ArcMap or ArcGIS Pro platforms
    • The headloss in a pipe downstream of a parallel VSP is higher than expected
    • The result field "Depth (Flooding)" is listed as N/A after computing a model with the SWMM engine. Is there a way to see the depth of flooding for a node?
    • Translated version still showing as English
    • Troubleshooting ArcGIS Pro Integration
    • Troubleshooting making a SCADA connection to Oracle database
    • Troubleshooting ModelBuilder issues and errors connecting to an Oracle database
    • Unexpected small flow in pipes that should have zero flow
    • Use of the Gas Law Exponent During Initial Conditions vs. Transient simulation
    • User Data Extension not appearing in the Post-Calculation Processor's "Output Property" field
    • User Data Extensions in the Fireflow report
    • User Notification "More than one VSPB cannot control the same control node"
    • User notification when computing: IDF data is not supported by SWMM. Storm event is excluded from export.
    • User notification: "Conduit has a Stop control structure, but this is not supported next to the connected outfall element."
    • User notification: "Transition from CONCENTRATED to EXTENDED"
    • Using Imperial and Metric Hydro International Vortex Valves
    • Using US Survey feet
    • Warning about outlet hydrograph not cresting
    • WaterGEMS and WaterCAD Data Import FAQ
    • WaterSight - Pump Overview
    • +WaterSight Learning Resource Guide
    • Wetwell flooded warning in steady state with GVF Convex (SewerCAD) solver
    • What does Entrance Control mean?
    • What is the best way to model an orifice plate inside a catchbasin with surface storage above the catchbasin rim?
    • What is the difference between a stand pipe and an inlet box?
    • What is the purpose the Rainfall File, Runoff File, and RDII File in the Calculations Options?
    • What is the workflow for setting up pre and postdeveloped conditions for multiple return events?
    • What kind of demands should be used as the initial conditions of a transient simulation?
    • What's new in HAMMER V8i SELECTseries 6?
    • When running a query, why is it not picking up the elements that it should?
    • Why are there 2 entries for the same alternative in the dropdown menu in the properties of a scenario? One with an "i" and one without it.
    • Why are there so many extra element types listed for WaterGEMS and WaterCAD, such as surge tank, rupture disk, Periodic head-flow?
    • Why do I get a warning message about the rational method being used for the modified rational method?
    • Will SCADA Results Publishing work with only OPC sources?

    You are currently comparing revision 13 and the current version.

    • History View current version

    Error in ModelBuilder: Error: Unable to open table. An item with the same key has already been added

    Bing Maps, ArcGIS, .MDB, Excel spreadsheet, unable to open table, SewerGEMS, .GDB, error, Modeling, ModelBuilder, Reviewed2016, WaterGEMS, Oracle Database, Bing Map, Access database, GeoDataBase, Shapefile, ArcMap

      Applies To 
      Product(s): SewerCAD, SewerGEMS, StormCAD, CivilStorm,WaterGEMS, WaterCAD, HAMMER
      Version(s): CONNECT Edition, V8i
      Area:  Modeling
      Original Author: Scott Kampa, Bentley Technical Support Group

    Error or Warning Message

    When importing external data from a source files (Excel spreadsheet, Access database, shapefile, or Geodatabase) with ModelBuilder, or when syncing data out to a source files using ModelBuilder, or attaching a BingMap background image, the following error message is generated:

    <Element Type> Error: "Unable to open table #####"

    or

    "An item with the same key has already been added"

    Bing Maps

    If you receive this error message when attempting to attach a Bing Map Background image, close your model and locate the model folder with File Explorer.  Then just rename (or delete) the .dwh file associated with the modelname.  Be careful not to rename/delete the *.profile.dwh file as this will not fix the problem.

    How to Avoid

    Option 1 

    There are two issues here that cause similar problems. The first is a problem with the geometry of the geodatabase file being used, which throws this error message: "<Element Type> Error: "Unable to open table #####". This issue was resolved in defect 129363 for Select Series 5 of WaterGEMS/WaterCAD/HAMMER. You can use the following link for downloading the latest patch set for the software from the Bentley website. 

    The second can occur when there are duplicate item labels being used in the 'Key Field' of ModelBuilder or can occur due to the geometry of the file. The "An item with the same key has already been added" can occur in the first step or after the fifth step. Make sure that the item labels being used in the 'Key Field' are unique. If there is no unique field, there will be a field called "<label>" in ModelBuilder. This is generated by the program and can be used as the 'Key Field' as needed. Note that you will not be able to sync data back to the source file if you use "<label>" as the 'Key Field', since this field is not available in the source file itself. This can also occur whether there are duplicate labels in the geodatabase file or what 'Key Field' type is used (GIS-ID or Label). In addition, check the source file for bad data, such as pipe lengths that are listed as being zero.

    Option 2

    Open the shapefile in ArcMap and right click on it  2) Choose Data > Export Data > Name the file and click Ok. This will create a new copy of the shapefile with the same coordinates as the other file.    

    Option 3

    Open the shapefile in ArcMap and run the "Repair Geometry" tool located in the Data Management ArcToolbox (ArcToolbox > Data Management > Features > Repair Geometry). Once this is completed, try the shapefile in ModelBuilder again.

    Note that you can also run the Check Geometry option to see if there are potential issues that will need repair first.

    Option 4

    If you are syncing the model out to update a source file, this issue can occur if the geometry of the pipes in the model is such that the length is zero. While a model will typically not compute with invalid pipe length or diameter data, importing a model with this information through ModelBuilder can be allowed. In order to resolve this, either valid data should be in the model, or the elements with the invalid data should not be included in the export.

    See Also

    Using ModelBuilder to Import External Data

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies