web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Solution: App opens gr...
Power Apps
Unanswered

Solution: App opens grey screen

(1) ShareShare
ReportReport
Posted on by 3,976

My app had gotten corrupted.

  1. Open the file
  2. Screen appeared grey in browser, screen showed PowerApps logo in the desktop editor

     

    2018-01-11 (2).png

     

    2018-01-11 (1).png

  3. Controls and their properties could be viewed
  4. If I deleted a control, it was deleted, but its name remained in the lefthand panel.
  5. If I deleted a control, saved the file, and reopened the app, the deletion was confirmed, but the grey screen remains.

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. 👌

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Thanks for the sharing.

     

    Regards,

    Michael

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard