Description:
I have been working on a new model, and saving frequently. Although no errors are being reported during the model save, I often find that I can't open the file I have saved. I get the error message:
Cannot open document
'C:\...'
Error unserializing GRT data
Type mismatch: expected object of type
db.mysql.Column, but got db.mysql.ForeignKey
Sometimes, instead of ForeignKey, it says db.mysql.Index, however, the error is always consistent for a specific version of the file (ie attempting to reload a corrupted file will always give the same error).
I am running a program (History Explorer) that saves copies of all versions of a file, so I can see that once a corrupted file is saved, all subsequent saves are also corrupt. I even tried saving, then saving again under a different file name, but once one file is saved in a corrupted form, the "save as" files are consistently also corrupted.
How to repeat:
Just save the model, make a small change, save again. It has never taken more than three or four saves to trigger the corruption. Note that there is no indication that the saved file has been corrupted until you attempt to load it again.