When trying to create a new project located in ProjectWise, the following error message is displayed:
AlertThis action can't be completed because the project option profile path is invalid or the project path is invalid.
When Options > Project Options > ProjectWise Attribute Mapping is selected from the New Project dialog:
Internal ErrorUI Error Message: Object reference not set to an instance of an object.TargetSite: Void GetValues()DeclaringType: Bentley.Electrical.UI.Options.UCPWAttrMappingAttributes: privateMemberType: Method...
Followed by
OptionsUnhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.Error occurs.See the end of this message for details on invokingjust-in-time (JIT) debugging instead of this dialog box.**************** Exception Text *****************System.Exception: Error occurs ---> System.NullReferenceException: Object reference not set to an instance of an object. at Bentley.Electrical.UI.Options.UCPWAttrMapping.gvMappingAttr_CustomRowCellEdit(Object sender, CustomRowCellEditEventArgs e) at DevExpress.XtraGrid.Views.Grid.GridView.GetRowCellRepositoryItem(Int32 rowHandle, GridColumn column)...
When trying to restore a project backup to ProjectWise:
Internal ErrorAPI Error Message: Item has already been added. Key in dictionary: 'My_Environment_Name' Key being added: 'My_Environment_Name'TargetSite: Void Insert(System.Object, System.Object, Boolean)DeclaringType: System.Collections.HashtableAttributes: privateMemberType: MethodStackTrace: C:\ProgramData\Bentley\...\Config\LastError.txt...
The LastError.txt file contains:
Void Insert(System.Object, System.Object, Boolean): Item has already been added. Key in dictionary: 'My_Environment_Name' Key being added: 'My_Environment_Name'0: at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)1: at System.Collections.Hashtable.Add(Object key, Object value)2: at System.Collections.Specialized.OrderedDictionary.Add(Object key, Object value)3: at Bentley.PwApiWrapper.PwApiUtilities.GetAllEnvironments()4: at Bentley.Electrical.API.Base.RestoreServiceBase.CheckTargetPath(String sToPath, String sTargetName, String restoreSrcFolder)
These error messages occur when there is more than one ProjectWise Environment with the same name. This name, shown as 'My_Environment_Name' above, is listed in the error messages. The duplicate names do not have to be for environments related to or used by Promis.e/Substation.
ProjectWise Environment names can be viewed using ProjectWise Administrator or by querying the o_envname column in the dms_env table in the database that is used by ProjectWise.
Use ProjectWise Administrator to rename environments so all names are unique and/or delete any duplicate environments that are not needed.