Error - "An error occured when saving" with New Page


 Product(s):Promis.e
 Version(s):through 08.11.13.96
 Environment:N\A
 Area:Migration
 Subarea:N\A

Error or Warning Message

After clicking OK on the New Page dialog, error message(s) are displayed:

Internal Error
API Error Message: Could not find file '....ANSI-IEEE_T.Dwg'
TargetSite: Void WinIOError(Int32, System.String)
DeclaringType: System.IO.__Error
Attributes: internal static
MemberType: Method
StackTrace: C:\ProgramData\Bentley\Promise V8i\Config\LastError.txt
Product Version: Promise V8i (SELECTseries 8)
DB Version: SQLServer 8.1.42

and no page is created, or

Error
An error occured when saving
Detail:Object reference not set to an instance of an object.

is displayed followed by:

Internal Error
UI Error Message: Object reference not set to an instance of an object.
TargetSite: ECT.ECAD.API.Page New(ECT.ECAD.API.PageSetting)
DeclaringType: ECT.ECAD.API.Pages
Attributes: public
MemberType: Method

and a page drawing may appear on the screen.

Explanation

These error messages can occur after migrating from Promis.e for AutoCAD to Promis.e Standalone. The problem is that the ProjectOptions.xml file that the project(s) is based on still points to DWG files instead of DGN files as seed files for new pages.

Note: when Promis.e for AutoCAD projects are migrated to Promis.e Standalone V8i SELECTseries 6 and above, the seed file extensions in the Project.Options.xml file in the project will get converted to ".dgn". But there is no migration function for template ProjectOptions.xml files. 

How to Avoid

  1. With the problem project highlighted in [[Project Manager]], select [[Options]] > Project Options > Standards > Grid/Snap Settings.
  2. In the Seed File column for each Drawing Mode, re-select the seed file. Only select seed files with .DGN file extensions.

    If only DWG files are available for selection, ensure the correct path is listed for Data Folder Path or Templates Path on [[Setup]] > System Paths. If the correct path is listed, DGN seed files are available in the [[Default Data folder contents|PromiseDataArchive.zip]] file and may be available in a local [[Promise Data folder]].
  3. Click Apply. This will fix the current project.
  4. Click the disk icon on the Project options bar to "Save project options as" and save the file as a template project options file. See [[Template Project Options]] for details. This will avoid the problem for future projects that are based on the new template project options file.

See Also

[[Moving From Promis.e for AutoCAD to Promis.e Standalone]]

[[Template Project Options]]

 Original Author:Matt_P

Keywords: occurred, TFS 6102