Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenUtilities
  • Product Communities
OpenUtilities
OpenUtilities Wiki Error at startup - Boolean Init
    • Sign In
    • +OpenUtilities
    • Access Service Request Manager
    • +Bentley sisHYD Multi Utility
    • Design Features - promis.e Functionality - Promis.e Standard
    • +OpenUtilities sisNET - English
    • -OpenUtilities Substation
      • +CONNECT Edition - OpenUtilities Substation
      • +3D Layout Features - Bentley Substation
      • About Bentley Substation
      • +Administration Features - Bentley Substation
      • +Automation Features - Bentley Substation
      • +Component Management - Bentley Substation
      • +Construction Drawings - Bentley Substation
      • +Database Platform Support - Bentley Substation
      • +Grounding Grid - Bentley Substation
      • How to log Service Request
      • -Installation_Configuration - Bentley Substation
        • Application Data (per-user configuration) - Substation
        • Compatibility Chart - Bentley Substation V8i
        • Data folder archive
        • Device.mdb - Substation
        • Diagnose a program crash using Event Viewer
        • Error - user configuration file could not be updated
        • Error at startup - Boolean Init
        • Error at startup - cannot find input table or query sym0
        • Error at startup - No value given / given key not present (Multi_Language_UI.mdb)
        • Error at Startup - Operation must use an updateable query
        • Error-Data at the root level is invalid. Line 1,Position 1.
        • Evaluation version does not download
        • How to create App Data Folder Deployment in Open Utilities Substation Connect
        • How to Install Bentley Substation
        • Installing with no internet connection
        • No right-click menu appears
        • Program Folder - Substation
        • +Substation Paths
        • Updating and Upgrading Bentley Substation
      • +Interoperability - Bentley Substation
      • +PowerPlatform Support - Bentley Substation
      • +Project Management - Bentley Substation
      • +ProjectWise Integration - Bentley Substation
      • Working from home with OpenUtilities Substation
    • Promis.e Paths
    • +Promis.e Wiki
    • Replace Family - Find_Replace - Promis.e
    • SQL Server Login

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

    Error at startup - Boolean Init

      Product(s): Promis.e, Bentley Substation
      Version(s): 08.11.11.18 - 08.11.13.140
      Environment: N/A
      Area: Installation_Configuration
      Subarea: N/A

    Error or Warning Message

    At startup, the following error message is displayed:

    Internal Error
    Error Message: Object reference not set to an instance of an object
    TargetSite: Boolean Init()
    DeclaringType: ECT.ECAD.API.UserSettings
    Attributes: public
    MemberType: Method

    or

    Internal Error
    UI Error Message: Object reference not set to an instance of an object
    TargetSite: Boolean Init()
    DeclaringType: ECT.ECAD.API.UserSettings
    Attributes: public
    MemberType: Method
    StackTrace: C:\ProgramData\Bentley\Promise V8i\Config\LastError.txt...

    LastError.txt contains:

    Boolean Init(): Object reference not set to an instance of an object.
    0: at ECT.ECAD.API.UserSettings.Init()
    1: at ECT.ECAD.API.UserSettings.Create()
    2: at ECT.ECAD.API.Application..ctor(Boolean bNeedDrawingTool, Boolean bNeedDB)
    3: at ECT.ECAD.API.Application..ctor(Boolean bNeedDrawingTool)
    4: at ECT.ECAD.API.Root.CreateApplication(Boolean bNeedDrawingTool)
    5: at Bentley.Electrical.UI.Command.CommandEntryServiceBase.Init(Int32 hwndMode, Int32 hwndLayer)

    Explanation

    The "UserSettings" part of the error message indicates a setting is missing from the user options setings.

    How to Avoid

    Option 1

    Delete or rename the UserOptions.xml file found in the following folder.
    Application Data (per-user configuration) - Promis.e or
    Application Data (per-user configuration) - Substation as the case may be.

    This will cause a new UserOptions.xml file to be created from the template user options file when the software is next started. If this does not help, the problem may be in the template user options file, see Option 2.

    Option 2

    Use Notepad or other text editor to open the UserOptions.xml file found in one of the following folders.

    Application Data (per-user configuration) - Promis.e
    Application Data (per-user configuration) - Substation

    If one of the first few lines (typically the second line) does not include "<UserOptions", or the contents of the file look significantly different than the default.UserOptions.xml file in the PromiseDataArchive.zip file, then the file is either corrupt or was overwritten by an inappropriate file. Replace the file with the default.UserOptions.xml file from PromiseDataArchive.zip, renaming the file to UserOptions.xml.

    If Option 1 was already tried, then the file specified in the "User option profile" field on Setup > System Paths is also suspect. Replace that file with the default.UserOptions.xml file from PromiseDataArchive.zip, renaming the file accordingly.

      Original Author: Matt_P

    Keywords: user settings

    • promis.e
    • error message
    • Bentley Substation
    • en
    • Installation_Configuration
    • Share
    • History
    • More
    • Cancel
    • Matt_P Created by Communities MVP Matt_P
    • When: Wed, Sep 20 2017 3:10 PM
    • Satish Saptasagar Last revision by Bentley Colleague Satish Saptasagar
    • When: Thu, Apr 16 2020 9:25 AM
    • Revisions: 3
    • 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

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