Showing results for 
Search instead for 
Did you mean: 
Post Patron
Post Patron

Image in Gallery only resets when screen reloads

Hello. I am having an issue with the image control in my gallery not resetting or refreshing, only doing so when the screen is loaded in. So it only resets when you leave the screen and come back.

This is my test app:



When I select the Upload Image button, it uploads the image to my blob storage container, and then creates a record in cds with that image's url containing a shared access key. This works fine and the url works. After this is done, I store all of the urls into a collection:


The issue though, is how the image works for all urls except for the one I just uploaded. It remains blank despite the url being there. I've tried refreshing the data source that holds the urls before creating the collection, resetting the gallery, and recreating the collection. Even after the collection has been created, I've tried refreshing the data source again, and resetting the gallery again, making gallery invisible then back to visible, and recreating the collection by doing a clear first and then doing a collect. None of it works, the image remains blank while the others are fine.

The only way I've gotten this to work is by navigating to another screen upon finishing the upload, and then coming back and creating the collection in the OnVisible property of the screen. If I do it that way, it works but I don't really like to having to go to another screen just to come back. 

Does anybody know a way to get this to work without having to go to another screen and come back? Thank you.

Super User
Super User


What happens if you get rid of the collection and just use the datasource collection?

Filter(ImageUrlTests, TICKET_NO=Gallery...<the rest of your filter criteria here>...)


I hope this is helpful for you.

Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Unfortunately, it didn't work either. It seems the only way it works is to to navigate to another screen and then return. Upon return I refresh the datasource, clearcollect the collection, and then reset the gallery. But doing those without switching screens doesn't work.

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,791)