Mathematica: GOTCHA: If you pull an EntityStore from a CloudObject with PersistentSymbol it caches and will not update if invoked again even if the CloudObject for the EntityStore has changed. Use instead CloudGet.

This page identifies a possible issue, concern, error, limitation, or bug!
Webel IT Australia promotes the amazing Mathematica tool and the powerful Wolfram Language and offers professional Mathematica services for computational computing and data analysis. Our Mathematica tips, issue tracking, and wishlist is offered here most constructively to help improve the tool and language and support the Mathematica user community.
DISCLAIMER: Wolfram Research does not officially endorse analysis by Webel IT Australia.
Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Mathematica keywords
Keywords
Assume you do the following in a local Notebook:
store = PersistentSymbol["store", PersistenceLocation["Cloud"]];
EntityRegister[store]

Then elsewhere (such as via a Cloud Notebook) you make changes to the store then push them back to the CloudObject (which changes you can view by loading the CloudObject page).

If you execute the following then inspect an Entity that was changed via elsewhere its values will not have changed:

EntityUnregister["type"];
store = PersistentSymbol["type", PersistenceLocation["Cloud"]];
EntityRegister[store]

There is some kind of caching going on. Maybe there is some "official" way of refreshing it, but one easy workaround is to use CloudGet instead and access the un-held EntityStore the pulled expression contains as [[1]][[1]]:

EntityUnregister["type"];
store$get = CloudGet["https://www.wolframcloud.com/env/username/Persistence/store"][[1]][[1]];
EntityRegister[store$get]
If you now inspect an Entity you changed via elsewhere it will express that change in your local Notebook.
Visit also:
Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)