Corrupted Revisions from Entity Data
I'm creating an Add-In, and I wanted to store some data in the model related to issuance. For this Add-In I need to map parameter names to revisions. To implement this I created a schema for my add-In with a Map field, which I was using to store a Dictionary of string keys and values. Then I created Entities for this data, and set those entities to each revision in the model.
We started noticing that models would get corrupted after the Add-In stored entity data in model. Based on the element ID's the revisions themselves were becoming corrupted. Some users were unable to open the model even by Auditing the file. Eventually we were able to open the models, and use a dynamo script to delete all entity data for the revisions in the project. That seemed to resolve the problem. This issue has occurred on several projects.
I was thinking about changing the Add-In to use a DataStorage class instead using revisions, but just to be safe I have since modified the Add-In to use an external XML file to store this data. I was wondering if you have any idea why the project revisions would become corrupted after storing entity data in them? I was only using it to store strings. Is there a limitation on the type of characters accepted even though I didn't get an error? I was storing non-alphanumeric characters such as %, &, and -.