Interestingly if I opened the above patch without any other patches open its working, but now that I’ve added a boolean to this it’s not now… HowTo Read And Write Objects - Original 2.vl (79.6 KB)
If I load the patch and hit read immediately, I get a pink boarder around the Deserialize, and from that point forward Deserialize doens’t seem to work. The only way I can get things to work again is by closing gamma completely, and reloading the patch.
Try the attached patch, which is stripped right back.
It doesn’t work because the file- (document) name contains “invalid characters”.
It works after removing the spaces and the minus-sign. I guess those would need to be escaped during serialization (but are not).
We just recently (days) came across this one as well. The root issue was that classes defined inside the App patch did get that weired category (made out of the document name containing spaces etc) the type parsing can’t deal with. In latest previews this will no longer be the case - such classes/patches will get the category of the document. Basically as if you would’ve placed them in the Definition patch.