Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Template Size field is not updating consistently

(1) ShareShare
ReportReport
Posted on by 16
Hi all! I have a bit of a head scratcher here. I have a vertical gallery where the Template size is equal to the sum of three variables, shown below.

 
If I hover over these three values, I see that they are equal to the following
 
 
Unfortunately, despite this, the template size is still equal to its previous value
 
 
Obviously, 122 is not the sum of the three values above. Funny enough, once I take another action, like pushing a button in my PowerApp, the size does correct itself, but it's very Inconsistent.
 
 
This not only happens in the editing view, but also the preview view.
 
For extra context, title_projectName.Y and Description_Abstract.Y never change in this context. The only thing that cahnges is Description_Abstract. It changes from a value of 10 to 198 when I press a checkbox. This happens because A: Description_Abstract has autoHeight turned on, and B: its text is set to 
 
If(Checkbox.Value, ThisItem.'Abstract Note')
 
Any ideas on why the template size updates so inconsistently, despite the values that it is dependent on updating consistently? Thank you for your time!
 
 
 
 
 
  • dncmelan Profile Picture
    16 on at
    Template Size variable is not updating consistently
    Is this possibly just a bug with power apps?

    Update:

    Instead of just setting the templateSize = to what I had before, I tried changing the onSelect of the checkbox to update a variable. I tried both Set(...) and UpdateContext(...). Both seem to have yielded the same results I've been getting... 

    From my perspective, it's as if the order in which variables and fields are updated in powerapps are effectively random, thus causing these inconsistent results. Is there a way to force a certain field to update last? If so, I could force the templateSize field to update its values last. As shown in the original post above, the .Height value of the abstract description is correct, and yet somehow the change is not reflected in the templateSize field. If the templateSize was updated last, then I suspect it would update correctly.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard