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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard