project was committed and closed properly, but failed to open it in next day. PS: the version in could is not up-to- date

0
below is the error message. can i can fix the problem? Newtonsoft.Json.JsonReaderException: Read past end of current container context. Path 'FormCall.Arguments[1].Widgets[1].Rows[4].Columns[1].Widgets[1].Rows[3].Columns[1].Widgets[1].Rows[1].'.   at Newtonsoft.Json.Bson.BsonDataReader.ReadNormal()   at Newtonsoft.Json.Bson.BsonDataReader.Read()   at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)   at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader)   at Mendix.Modeler.Storage.ContentsUtil.ParseBson(Stream stream) in Mendix.Modeler.Storage\ContentsUtil.cs:line 28   at Mendix.Modeler.Storage.ContentsUtil.ParseBson(Byte[] bson) in Mendix.Modeler.Storage\ContentsUtil.cs:line 18   at Mendix.Modeler.Storage.Operations.UnitContentsLoader.ConstructUnitFromContents(IStorageUnit container, Byte[] contents) in Mendix.Modeler.Storage\Operations\UnitContentsLoader.cs:line 38   at Mendix.Modeler.Storage.Operations.UnitLoader.ConstructUnit(IStorageUnit container, IMprUnitData unitData) in Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 203   at Mendix.Modeler.Storage.Operations.UnitLoader.<>c__DisplayClass17_0.<LoadUnits>b__0(IMprUnitData unitData) in Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 172   at Mendix.Modeler.Storage.Mpr.Storage.MprUnitRepositoryBase.ExecuteLoadCommand(IDbCommand command, Boolean loadContents, Action`1 handleUnitData) in Mendix.Modeler.Storage\Mpr\Storage\MprUnitRepositoryBase.cs:line 197   at Mendix.Modeler.Storage.Mpr.Storage.MprUnitRepositoryBase.LoadUnitsBatched(IEnumerable`1 unitIDs, Boolean loadContents, Action`1 handleUnitData) in Mendix.Modeler.Storage\Mpr\Storage\MprUnitRepositoryBase.cs:line 180   at Mendix.Modeler.Storage.Mpr.Storage.MprUnitRepositoryBase.LoadUnits(UnitQuery unitQuery, Boolean loadContents, Action`1 handleUnitData) in Mendix.Modeler.Storage\Mpr\Storage\MprUnitRepositoryBase.cs:line 130   at Mendix.Modeler.Storage.Operations.UnitLoader.LoadUnits(IStorageUnit unit, IEnumerable`1 unitIDs) in Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 163   at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 125   at Mendix.Modeler.Storage.Operations.UnitLoader.LoadChildUnits(IStorageUnit unit) in Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 156   at Mendix.Modeler.Storage.Operations.UnitLoader.<>c__DisplayClass12_0`1.<Load>b__1() in Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 45   at Mendix.Modeler.Undo.GlobalTransactionManager.<>c__DisplayClass22_0.<JustDo>b__0() in Mendix.Modeler.Undo\GlobalTransactionManager.cs:line 150   at Mendix.Modeler.Undo.GlobalTransactionManager.JustDo[T](Func`1 action) in Mendix.Modeler.Undo\GlobalTransactionManager.cs:line 169   at Mendix.Modeler.Undo.GlobalTransactionManager.JustDo(Action action) in Mendix.Modeler.Undo\GlobalTransactionManager.cs:line 148   at Mendix.Modeler.Storage.Operations.UnitLoader.Load[T](IProgressInfo info, Dictionary`2 _knownUnits) in Mendix.Modeler.Storage\Operations\UnitLoader.cs:line 42   at Mendix.Modeler.Storage.Database.Load[T](IProgressInfo info, Dictionary`2 knownUnits, Boolean throwOnUnknownObjects) in Mendix.Modeler.Storage\Database.cs:line 50   at Mendix.Modeler.Operations.ProjectFileLoader.<>c__DisplayClass3_0.<Load>b__0(IDatabase database) in Mendix.Modeler.Core\Operations\ProjectFileLoader.cs:line 32   at Mendix.Modeler.Storage.DatabaseManager.<>c__DisplayClass12_0`1.<Do>b__0(IMprStorageService mprStorageService) in Mendix.Modeler.Storage\DatabaseManager.cs:line 70   at Mendix.Modeler.Storage.Mpr.Storage.MprStorageManager.PerformAction[T](String mprFilePath, Func`2 action, IMprStorageService mprStorageService, IDbConnector connector, String loggingId) in Mendix.Modeler.Storage\Mpr\Storage\MprStorageManager.cs:line 166   at Mendix.Modeler.Storage.Mpr.Storage.MprStorageManager.Do[T](String mprFilePath, Func`2 action, Boolean doCheckForV2) in Mendix.Modeler.Storage\Mpr\Storage\MprStorageManager.cs:line 148   at Mendix.Modeler.Storage.Mpr.Storage.MprStorageManager.Do[T](String mprFilePath, Func`2 action) in Mendix.Modeler.Storage\Mpr\Storage\MprStorageManager.cs:line 85   at Mendix.Modeler.Storage.DatabaseManager.Do[TResult](String filePath, Func`2 action) in Mendix.Modeler.Storage\DatabaseManager.cs:line 70   at Mendix.Modeler.Operations.ProjectFileLoader.Load(IProgressInfo info, String filePath, Boolean debugLogEnabled) in Mendix.Modeler.Core\Operations\ProjectFileLoader.cs:line 26
asked
1 answers
0

Hi Terry, this usually indicates a corrupted project file or a broken widget/layout definition.  Mendix Modeler tries to load your project file (mpr file), which is stored in a BSON (Binary JSON) based format.

 

Error shows that the file structure is incomplete or corrupted, likely caused by a partial or faulty save, a problematic widget, or inconsistent model state. This prevents the Modeler from correctly parsing and opening your project.

 

1. Restore from Backup or Version Control, if you use Git or another VCS with Mendix Team Server, try reverting to a previous working commit/version before the issue appeared.

2. Delete/Replace Problematic Widget or Layout, the error points to a deeply nested widget inside a form. If you can identify and remove that widget from your source (maybe manually or via a text editor for the project files), it might help.

3. Use Mendix Support Tools, mendix support or community may have tools or scripts to repair corrupted project files or clean up the JSON structure.

4. Open a Copy in a Previous Mendix Version, sometimes opening the project in the older version of Mendix Modeler that last saved it can help, then export or fix the project before upgrading.

5. Contact Mendix Support, if none of the above works, provide the full error and project snapshot to Mendix Support for assistance.

 

Prevention Tips:

  • Commit frequently to version control.

  • Avoid closing the Modeler before saving and waiting for all background operations to finish.

  • Test new widgets or modules in isolated branches.

I hope this one helps you! :)

answered