Hello, I seem to running into an issue that is specific to Revit 2019, as it does not happen in 2017, 2018 and 2020 (using the exact same code).
For my addin I want to save data into the project information of the document using a custom schema. This is generated using the SchemaBuilder class, where I set the schema properties using the example as shown in the API documation.
Adding the schema as a new entity to the document in a transaction succeeds.
And I can use Revit Lookup to inspect the saved data in the document.
Now here's the problem that occurs:
I save the document, with the custom schema added, as a new file.
I close the document.
I re-open the newly saved document, and I get the following errors:
First error on open:
First error on open
Second error on open:
Second error on open
Now I'm unable to open the Revit document.
This can be fixed by opening the document with the Audit checkbox enabled.
Where it prompts the following popup:
![screenshot_2019-11-06_10-38-25.png screenshot_2019-11-06_10-38-25.png]()
Where pressing Repair and open will clear any existing Project Information that was stored, and regenerate the default Project Information fields with empty values.
Could anybody help me with this?