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 / BUG: PowerApps Studio ...
Power Apps
Unanswered

BUG: PowerApps Studio REMOVING MY CODE (Editing Gallery.Items resets Gallery Label Formulas)

(1) ShareShare
ReportReport
Posted on by 427

So, This is REALLY annoying behaviour of the PowerApps Studio...

 

I have a Gallery, and the template contains about 10 labels referring to data in each Item - and some labels have fairly complex formulas.

 

However, If I edit the Gallery.Items expression (for example, to simple add another filter), the PowerApps studio COMPLETELY WIPES OUT all my Label Formulas, and resets them to "What it thinks"... (usually the first X fields of the collection)

 

Seeing as I don't quite remember what each formula is, I have no option but to restore a previous version, and do all my changes again.

 

Also, I can't see any way to stop this behaviour, so If i want to edit the Gallery.Items expression, I have to copy or write down all my Label formulas so that I can put them back into the Labels after editing the Gallery.Items.

 

Actually - It's a good job I even noticed, as It would be entirely possible for me to tweak the Gallery.Items formula for an App and then Save/Publish, without spotting that all the Label formulas have been erased.

 

What's next? Is Microsoft Word going to just decide that it doesn't like what I wrote in my letter, and is just going to change it to something else without asking me?

Is Excel just going to remove a load of data and change all my formulas because it has decided I should see something different?

Does VS or VSCode just unilaterally change or remove portions of code for your project?

 

WHY is it OK for the PowerApps Studio to REMOVE MY CODE without asking ?

Please Microsoft, fix this ridiculous behaviour! This is UNACCEPTABLE!

 

James.

Categories:
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    @james_hathaway - thanks for posting this. I agree it's an annoying bug and I hope that Microsoft fix it.

    For the benefit of anyone at MS who might be reading this, here's another post that describes this behaviour.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Why-do-some-canvas-app-galleries-get-completely-scrambled-when-I/m-p/1582931

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard