
Announcements
My app had gotten corrupted.
I had a recovery file, but it was 35 files and 6 hours earlier.
So I worked backwards from the last good file.
I deleted all the screens and controls in the app, saved the file, opened it and the problem remained. The only thing left were the properties of the empty screen. Apparently I had set a global variable in the OnStart screen that PowerApps did not like:
Set(OnStart,true)
I was able to recover my most recent file by deleting the formula in OnStart. I had originally set that variable so it would trigger a toggle that included the actual commands I wanted for OnStart--in other words, I outsourced the actions to a toggle instead.
I had created the toggle so I could click it upon opening a file since the editor does not trigger the OnStart commands upon opening a file. I assume that is by design so you don't accidentally put Exit() or some bad code in the OnStart commands and kill your app from ever opening.
It is a best practice not to name things after existing controls and functions. I should have known better, but I am putting this out there so it doesn't happen to anyone else. 👌