"Can't create key in locked storage dictionary"

Been seeing this crop up periodically and not sure why!
I can provide deeper info on this but before i do has anyone else seen this unusual error before?

Menu_helper/UI/UI", line 69, in Click
File “/sys/local/modules/TDStoreTools”, line 206, in setitem
KeyError: (“Can’t create key in locked storage dictionary”, ‘Cone’, type:containerCOMP path:/software/modules/PixelMapEditor/SceneManager/body/ATRIB_V2/Menu_helper/UI)

What this means is that you haven’t created the key in the “stored items list” provided to the storage manager. If you want to be able to create stored keys on the fly in your storage manager, just create it with a “locked=False” argument…

self.stored = StorageManager(self, ownerComp, storedItems, locked=False)
derivative.ca/wiki099/index. … ager_Class

I’ll add that bit to the wiki when I have a wiki day :slight_smile:

Oh!

Thanks a bunch Ivan. This makes more sense now as to why this is happening on my end in the first place too.

Will give this a shot - thanks.