Error: Data at the root level is invalid. Line 1 position 1

  Applies To 
  Product(s): Bentley WaterGEMS, Bentley WaterCAD, Bentley SewerGEMS, Bentley SewerCAD, Bentley StormCAD, Bentley CivilStorm, Bentley PondPack, Bentley HAMMER
  Version(s): 08.11.xx.xx
  Area:  Modeling
  Original Author: Akshaya Niraula, Bentley Technical Support Group
   

Problem

The error message "Data at the root level is invalid. Line 1, position 1" or "Room element is missing" is generated when opening up or saving a model.

Solution

The starter file (.wtg/.stsw/.ppc) is likely corrupt. There are two options to resolve the issue.

First, import the database to new project by going to File > Import > (product name) Database. The database file contains almost all of the modeling data. However, using this process will mean that you have to recreate an element symbology or graphs you may have in the model, as this is saved in the starter file.

Second, you can try to rename a recent backup file for both the starter file and the database file.

Recommended
Related