I've started working on an app that I had put down for a few months due to other work obligations coming up.
Initially, I had been using LoadData() for a few settings I wanted to keep for the user's next session, which had been working fine. However, after starting it up again a few months later, it suddenly stopped working in a not-so-graceful way. I have 3 instances of LoadData in my OnStart that look for a specific setting and have the optional "true" at the end in case nothing is there.
2 of them work just fine, but a 3rd one I have called "locationSetting" does not work at all, and does not throw any error. It just bricks the entirety of the OnStart formula and causes nothing that was supposed to happen there to work.
I've narrowed it down to the LoadData for this specific one by replacing it with a manual definition of the collection I was trying to load. It doesn't work when it's both not there and has data stored under that collection name in the cache.
Here is the code I have in the OnStart:
LoadData(locationSetting,"locationSetting", true); <-the line breaking the code
Set(SelectedLocation,LookUp(locationSetting, Setting="Location",Location));
If(IsBlank(SelectedLocation),Set(SelectedLocation,"All"));
Not sure if there are any banned words that I can't use for my locally saved collections, limits to the number of times I can call LoadData, or if I should delay/stagger all the LoadData calls by a small margin with a timer, since other than that, I'm stumped on how to fix this.