Recovering from "Cannot read file count from project MML" Error

Sometimes when SonarWiz crashes it can corrupt your project MML file. The next time you attempt to open the project, you may see an error message that says “Cannot read file count from project MML”

Fortunately, SonarWiz makes backup copies of your project MML file each time you open the project. So, it should be possible to recover the project by restoring a good copy of your MML file from one of the backups.

Instructions

Restoring a backup project MML file:

  1. Navigate Windows File Explorer to your Project Folder and note the name of your current (corrupted) MML file in the root folder of your project:


    In this example, the SonarWiz project name is SBP_Demo, and the project MML file is named SBP_Demo.mml.

  2. Rename the currupted mml file to something like SBP_Demo.mml.bad.


     

  3. Navigate to the Backup folder in your project and notice that there are several backup MML files stored for safe keeping:


    The backup mml files are named sequentially with BU01 being the most recent backup and BU10 being the oldest.

  4. Locate a backup mml file that was created before the crash occurred. You may need to start with BU04 or earlier if you have tried to open SonarWiz several times since the crash.

  5. Copy and Paste the backup mml file into the root of your project folder. Paste it right next to the “bad” mml.

     

  6. Rename the backup mml file (remove the “_BU04”) to match the original project MML file name.

     

  7. Try re-launching SonarWiz again.

Copyright 2022, Chesapeake Technology, Inc.