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 / UpdateContext have the...
Power Apps
Answered

UpdateContext have the same code but data retrieved is sometimes have missing field.

(0) ShareShare
ReportReport
Posted on by 4,932 Moderator

Hello,

 

OnVisible property of a screen and a refresh icon's OnSelect have the same UpdateContext code but load data to the context variable differently. When on OnSelect is triggered, it loads the same data with missing fields and it's inconsistent. Different missing fields every time the icon is selected and there was no Data Change happened between OnVisible and OnSelect. so would like to know two things:

 

  • Has any experience similar to this ?
  • What was your workaround?

 

UpdateContext(
 {
 contextLastRun: 
 First(
 Sort(
 Filter(
 SQL_TABLE,RequestType="__SECRET__STRING___HERE____"
 )
 ,RequestTime, Descending
 )
 )
 }
);

 

ONVISIBLE RESULT

 

cha_cha_0-1670978414512.png

 

ONSELECT RESULT

cha_cha_1-1670978611774.png

 

 

Categories:
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Got it fixed with a couple of clear cache and reloading of the dev environment.

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard