Hi,
This error indicates that the .mpr file has become inconsistent/corrupted, most likely during the Maia-generated microflow creation where Studio Pro became unresponsive.
The KeyNotFoundException during UnitLoader typically means:
.mpr (SQLite DB)When Studio Pro crashed:
1. Restore from Team Server (best option)
If your project is version controlled:
This is the safest and most reliable fix.
2. Restore from backup (.mpr.bak)
Check your project folder for:
projectname.mpr.bak
.mpr3. Use local version history (if enabled)
If you had local history:
.mpr4. Last resort (manual DB recovery – risky)
Since .mpr is a SQLite DB:
Unit / ObjectBut this is not recommended unless you know the internal structure.
Maia is still evolving, and if Studio Pro becomes unresponsive during generation:
This is not a normal modeling issue but a model corruption caused by an interrupted write operation. The correct fix is to restore a previous working version (Team Server or backup) rather than trying to repair the .mpr manually.