Unable to open local app – DBNull to Byte[] error (MPR corruption)

0
Hello ⁠Everyone, I m facing an strange issue   I’m unable to open a local Mendix app that was not yet uploaded to Team Server.   When opening the .mpr, Studio Pro throws the following error:System.InvalidCastException: Unable to cast object of type ‘System.DBNull’ to type ‘System.Byte[]’ during unit loading. I have already tried: Clearing Mendix cache adddata/local/mendix cache Removing .mpr.lock and local project cache Restarting sysytem Opening with different Studio Pro versions (10.12.6, 10.15.0) The project’s modules folder is empty, so module import is not possible and the model seems to exist only inside the .mpr.   Kindly let me know if any recovery is possible at SQLite / model level.     is it possible to RECOVER the completed code , even module wise ?   can some one please help on this attached the error details . /file?guid=19703248381305093   Thanks in Advance.  
asked
1 answers
1

Trial and error is theoretically possible because an .mpr file is SQLite-based, but in practice it’s very risky since Mendix’s internal model structure is not documented and it’s unclear which records are safe to modify. A wrong change can easily break the project or cause data loss.

 

Therefore, sending the file to Mendix Support is the safest approach, as they have internal recovery tools. Before doing anything, always make a backup of the .mpr file to avoid losing the only copy.

answered