Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
AutoPLANT | OpenPlant | PlantWise
  • Product Communities
  • More
AutoPLANT | OpenPlant | PlantWise
AutoPLANT | OpenPlant | PlantWise Wiki To Fix Unhandled Exception Error “Index was outside the bounds of the array”
    • Sign in
    • -AutoPLANT | Bentley Raceway and Cable Management | OpenPlant | PlantWise Wiki
      • -OpenPlant
        • +CONNECT Services - OpenPlant
        • +Example Configuration - CONNECT Edition
        • +Installations - OpenPlant CONNECT Edition Applications
        • +OpenPlant Download Links & Videos
        • OpenPlant Product Compatibility
        • +OpenPlant Modeler CONNECT
        • +OpenPlant PID CONNECT
        • +OpenPlant Isometrics Manager CONNECT
        • +OpenPlant Orthographics Manager CONNECT
        • +OpenPlant Support Engineering CONNECT
        • +OpenPlant Project Administrator CONNECT
        • +OpenPlant CONNECT Edition-PlantSight Integration
        • -OpenPlant Modeler v8i
          • +Component - OpenPlant Modeler
          • +Drawing Generation- OpenPlant Modeler
          • -Errors, Logs, Messages, Crashes - OpenPlant Modeler
            • "Failed to Find Cell Library for Diagram" Error While Placing Equipment
            • "No Component Found With Initial Selection From Specs" Appears While Placing Component
            • Attach OpenPlant Modeler Objects in ProSteel
            • Deleting User Data Files Local and Roaming
            • Duplicate Key Tags Message in OpenPlant Modeler
            • Graphics Issue- Distorted graphics- Display Graphics in OpenPlant Modeler
            • How To Fix "Unable to Load Schema For StressApp" Error in OpenPlant Modeler
            • How to Make Seals and Fasteners Inherit Properties From Adjacent Components
            • Invalid Catalog Selected Issues in OpenPlant Specification Generator
            • Invalid Joint Error while Validating Joint for Custom Components
            • Line 241 Error-Launching OpenPlant Modeler
            • Property is Read Only Error in OpenPlant Modeler
            • Selected Spec is Incompatible With the Current Project
            • +Spec Validation Report Error: Some Properties in Spec Do Not Match in Component
            • Standard Preferences Dialog Disappeared from OpenPlant Modeler
            • StartUp Error-Launching OpenPlant Modeler
            • Structural Synchronizer Engine Not Found Message when Selecting Repository from Structural tab
            • Tap Port Connection On Blind Flange Placement Issue
            • To Fix Incorrect Property Update while using AutoMatch Option
            • To Fix Joint Connection Error While Modeling Component
            • To Fix Missing Ports Information for PIPE_ELBOW_5_DEGREE in OpenPlant Modeler
            • To Fix Pro Steel Models Referenced in OpenPlant using Object Enabler
            • To Fix Support Rotation Issue By Manual Rotation or By placing supports using OpenPlant Support Engineering .
            • To Fix Unhandled Exception Error while Launching Pipeline Manager in OpenPlant Modeler V8i
            • To Fix Unhandled Exception Error “Index was outside the bounds of the array”
            • Too Many Results (XXXX).Select this to see items in details
            • Unable to Delete Corrupt Component in OpenPlant Modeler
            • Unable to Find Catalog Issue in OpenPlant Specification Generator
            • Wafer Joint on Components with Different Facing and Rating Shows Error While Placement
          • +Import/Export- OpenPlant Modeler
          • +Installation - OpenPlant Modeler
          • +OpenPlant HVAC-OpenPlant Modeler
          • OpenPlant Modeler [FAQ]
          • +OpenPlant Specification Generator
          • +ProjectWise - OpenPlant Modeler
          • +Properties - OpenPlant Modeler
          • +Release Notes - OpenPlant Modeler
          • +Schema - OpenPlant Modeler
          • +Settings/Attributes - OpenPlant Modeler
          • +Structural Modeling Components (SMC)- OpenPlant Modeler
          • +Tasks - OpenPlant Modeler
          • +Training - OpenPlant Modeler
        • +OpenPlant Isometrics Manager v8i
        • +OpenPlant Project Administrator v8i
        • +OpenPlant PID v8i
        • +OpenPlant Orthographics Manager v8i
        • +OpenPlant Support Engineering v8i
        • +OpenPlant ModelServer v8i
        • +OpenPlant Reporting v8i
        • How to Connect with Bentley Technical Support Team using Microsoft Teams
        • How to Connect with Bentley Technical Support Team using Microsoft Teams via Browser
      • +Bentley AutoPLANT
      • +Bentley Navigator
      • +Bentley PlantSpace
      • +Plant Project Tools
      • +Bentley Raceway and Cable Management
      • i-model Composition Service for S3D
      • Working from home with OpenPlant
      • Working from home with Bentley Raceway and Cable Management
      • Working from home with AutoPLANT Modeler
    • How to Associate the Specification Based on Service in OpenPlant Modeler Connect

     
     Questions about this article, topic, or product? Click here. 

    To Fix Unhandled Exception Error “Index was outside the bounds of the array”

    Applies To 
    Product(s): OpenPlant Modeler
    Version(s): 08.11.09.XXX (SS5) | 08.11.11.XX (SS6)
    Environment:  Windows 7/8.1/10 (64 bit)
    Area:  OpenPlant Specification Generator
    Subarea:  -
    Original Author: Deepak Singh, Bentley Product Advantage Group

    Overview

    To fix unhandled exception error “Index was outside the bounds of the array” while launching Auto Elbow Tool in OpenPlant Specification Generator

    Problem Description

    While launching Auto Elbow Tool in OpenPlant Specification Generator an unhandled exception error of Index was outside the bounds of the array threw as shown below.



    This issue arises when classes for bend/elbow records are changed from the spec. For definition of Auto Elbow, EC_CLASS_NAME & relevant sizes are defined in Auto Elbow Dialog. If EC_CLASS_NAME list defined in the Auto Elbow Dialog box is not present in the Bend/Elbow section, above unhandled exception error will occur. By defining Auto Elbow definition & saving the specs, it automatically generates AUTO_BEND Table in the Microsoft access (*.mdb) file of the spec. See image below.

     

    Navigate to your root folder where spec is saved. Open the spec & Open AUTO_BEND table. Notice the EC_CLASS_NAME list.

    Inspect your spec by opening in OpenPlant Specification Generator. Navigate to Elbow/Bend section.In Bend/Elbow section there must be definition/list of classes that are written in the AUTO_BEND table. Missing of any class from Bend/Elbow section that is present in AUTO_BEND table of Microsoft Access will result into crash.



    Compare the class list of Bend Section & AUTO_BEND table, classes are missing in the BEND section. Selecting Auto Elbow Option will pop an error message as shown above.

    Note: An elementary knowledge of Microsoft-Access is required to fix this issue.

    Steps to Resolve

    1. Navigate to your root folder where spec is saved.

    2. Open spec *.mdb in Microsoft Access.

    3. Open AUTO_BEND table. Select all the records and delete them.



    4. Save spec *.mdb.

    5. Using OpenPlant Specification Generator open your spec.

    6. Select Auto Elbow option no error message will pop.



      Note: In Auto Elbow Dialog only those classes will list that are defined in Bend/Elbow Section of spec. To avail more classes, you need to define more classes in the Bend/Elbow Section

    7. Add another class e.g. PIPE_ELBOW_60_DEGREE as shown below, save the spec.



    8.  Select the Auto Elbow tool, notice PIPE_ELBOW_60_DEGREE class is now listing in Auto Elbow Dialog as shown.

    Still a Problem?

    If above problem still persist, then please create a Service Request and contact the Bentley Product Advantage group.  Please include a list of all relevant details to get in depth analysis for a solution or workaround.

    See Also

    http://communities.bentley.com/products/plant/design___engineering/w/plant_design_and_engineering__wiki/25346.error-an-internal-error-occurred-could-not-start-responsive-microstation-server 

    Comments or Corrections?

    Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!

    • OpenPlant Specification Generator Unhandled Exception Error
    • SpecGen Unhandled Exception Error
    • Index was outside the bound of Array
    • Unhandled Exception Error
    • Share
    • History
    • More
    • Cancel
    • Deepak Singh Created by Bentley Colleague Deepak Singh
    • When: Thu, Nov 3 2016 9:51 AM
    • Deepak Singh Last revision by Bentley Colleague Deepak Singh
    • When: Thu, Nov 3 2016 9:54 AM
    • Revisions: 2
    • Comments: 0
    Recommended
    Related
    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

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