When replacing the original Home Screen with another screen, where the original contains On Start actions, the app continues to reference the original Home Screen for the App.OnStart function. In fact, if the original Home Screen is deleted and the new Home Screen contains the same On Start actions, they are not executed and any variables or collections are blank/empty.
This is definitely a bug.
Thanks for the feedback.
It seems the OnStart property will not work consistently with the screen action, like duplicate, delete or move up/down.
Please consider switch to Onvisible property as a temporary workaround.
I will send the feedback regarding the OnStart property from my side, and update here if I have got any response back.
Have seen this as well.
The most common "work around" to things like this is to Save the app in studio, exit, and reload.
Unfortunately I find myself doing this several times a day to work around some of the quirks like this (and there are a number of them) where things that did work suddenly don't. But a reload of studio often seems to resolve many of them.
Thanks @Anonymous for the reminder. The symptom should be fixed after a reload. So it is recommended to take re-check the configured formula after a reload.
The OnStart property has the following explanation documented:
OnStart – The behavior of the app when the user opens the app.
I've already tried all the suggestions but the issue remains. The ONLY solution I've found so far is to rename the variables and collections.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.