How to recover a model that won’t open in XPSWMM

Mel Meng
3 min readAug 18, 2021

--

Source: Innovyze Support Portal

If your XPSWMM model won’t open, here are a few things you might be able to do to recovery the model.

XPSWMM Model Files

Refer to the help for more information about the structure of the model database, and how model edits are saved to the files.

Here are a few important facts related to recovering a corrupted model,

  • XPSWMM stores the model data in a few files. When an XPSWMM model is open, everything is loaded into the memory, until the model is saved the model will not be updated on the hard drive.
  • XPSWMM also creates a copy of the model file when it is open with the extension of *.bak. In case the model crashes, the *.bak file will have the copy before the crash.
  • When a model is opened with a newer version of XPSWMM, a copy of the original *.xp file will be created with the suffix of the database version.

Recover a model

Below are the options,

  • If there is a *.bak file in the model folder, change the name of the *.xp to *_copy.xp, then change the *.bak file to *.xp. See if the backup model will open.
  • If there is a *.xp file with the suffix of a database version. Change the name of the model *.xp file to *_copy.xp, rename the *.xp file with the suffix to the model name, see if that model opens.
  • Some models can be partly restored by making a new model and then merging incrementally the links and nodes, the Job Control and the Global Database records if no .bak is available.

Recommendations

As an XPSWMM model grows in size over time it is important to be prepared for possible data corruption. Making copies of the model at key milestones such as the end of each phase is good practice. Using the “transmit model” tool to create zip files for a snapshot of the model.

For models with a long history spanning many versions of XPSWMM the model might need to be rebuilt from time to time to purge out the unused objects in the database. Next time you pick up an old model, check its size. For most XPSWMM models, its size should be well under the 50M mark. If you have a model larger than 50M, it is a good idea to rebuild it.

--

--

Mel Meng
Mel Meng

No responses yet