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 / Gallery is sometimes e...
Power Apps
Unanswered

Gallery is sometimes empty after data refresh

(0) ShareShare
ReportReport
Posted on by 23

Hello

I have same bug in different apps.

 

When I'm refreshing my data sources then galleries that use them as a data source should refresh as well.

The problem is that quite often after I perform a refresh operation the gallery is not showing any data (is empty) and it requires an additional refresh (sometimes multiple refreshes) to get data shown in the gallery again.

 

dnx_0-1630569765254.png

dnx_1-1630569796465.png

 

It happens with collections as well.

And those Search functions doesnt cause the problem, it occurs also without Search.
Filter variable stays the same.


Example code of gallery "Items" property:

 

 

 

Search(
 Search(
 Search(
 Search(
 SortByColumns(
 Search(
 AddColumns(
 Filter(
 Töökäsu_tooriku_pakid,
 'Broneeringu selgitus' = sel_tk_nr
 ),
 "Pingis",
 U_Piirkond = "Tootmine"
 ),
 c_search_2.Search1,
 "PakiNr"
 ),
 "Pingis",
 Descending
 ),
 tx_fil_puu_2.Text,
 "Artikkel"
 ),
 tx_fil_paksus_2.Text,
 "Artikkel"
 ),
 tx_fil_laius_2.Text,
 "Artikkel"
 ),
 tx_fil_pikkus_2.Text,
 "Artikkel"
)

 

 

 


And example code of refresh operation called with a button click:

 

 

 

Refresh(Töökäsu_tooriku_pakid);

 

 

 


Thanks for your help in advance!

Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @dnx ,

     

    You may test the formula with reducing the functions and adding them one by one to find from which level the issue would come out.

     

    In addition, you may move out the SortByColumns function from all the Search functions to make it the outermost layer:

    SortByColumns(
     Search(
     Search(
     Search(
     Search(
     Search(
     AddColumns(
     Filter(
     Töökäsu_tooriku_pakid,
     'Broneeringu selgitus' = sel_tk_nr
     ),
     "Pingis",
     U_Piirkond = "Tootmine"
     ),
     c_search_2.Search1,
     "PakiNr"
     ),
     tx_fil_puu_2.Text,
     "Artikkel"
     ),
     tx_fil_paksus_2.Text,
     "Artikkel"
     ),
     tx_fil_laius_2.Text,
     "Artikkel"
     ),
     tx_fil_pikkus_2.Text,
     "Artikkel"
     ),
    "Pingis",
    Descending
    )

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @dnx ,

     

    Have you resolved the issue? 

    If above post helps, then please consider Accept it as the solution to help the other members find it.


    Best regards,
    Community Support Team _ Jeffer Ni

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard