Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Gallery not displaying images

Posted on by
Hi,
 
We have a component that a user uploads images and then the gallery displays the images they uploaded, this has been working perfect for 2 months until the past couple of days, now when a user uploads the image if 10 minutes pasts the images will display as blank, was there a patch recently that added a time out session? On my computer i can't replicate this issue, this is only happening on the mobile app which is also set up for offline use.
 
I have attached 2 images, one is what happens when you leave it and it goes blank the other is what happens when you upload once it has gone blank and as you can see it displays the current images just not the previous ones
Categories:
  • Suggested answer
    Ammar Zaied Profile Picture
    Ammar Zaied 97 on at
    Gallery not displaying images
    Hi,
    Possible Causes:

    1. Test the Offline Functionality

    • Check the offline storage settings in Power Apps. Try increasing the cache size or optimizing how images are stored locally.
    • In Power Apps Studio, you can adjust offline behavior using the SaveData() and LoadData() functions to explicitly manage offline storage. If the images are large, they might need to be compressed before saving to the offline cache.

    2. Investigate the Image Storage

    • If the images are stored in SharePoint or Azure Blob Storage, check how long the image URLs (or SAS tokens) are valid.
      • For Azure Blob Storage, SAS tokens might expire after a certain period (like 10 minutes). You can adjust the SAS token expiration in the backend.
      • For SharePoint, verify if the direct links to the images are expiring after a period.

    3. Test on Multiple Devices

    • Test the app on multiple mobile devices to determine if the issue is isolated to specific devices or OS versions.
    • Try clearing the Power Apps cache on the mobile device and reinstalling the app to see if that resolves the issue.

    4. Check for Recent Power Apps Updates

    • Review the Power Apps release notes or forums to see if any recent updates have affected how images are handled on mobile devices. This could indicate a broader issue or a bug introduced in a recent update.
  • Suggested answer
    CA1105 Profile Picture
    CA1105 222 on at
    Gallery not displaying images
    There might be a issue with collection/datasource. Could you please try to Refresh your gallery by adding timer control and on timerstart refersh your datasource or collection which you are using to bind the gallery.
  • Suggested answer
    Nandit Profile Picture
    Nandit 1,535 on at
    Gallery not displaying images
     
    Can you try introducing a Refersh button on the screen. Just to refresh the DataSource that holds the images to see if they start showing up after clicking the refresh button?
     
    OnSelect:
    Refresh(DataSource)
    If its gets you closer to the right behaviour, you can try to include this on the Submit button of the images. 

    Hope it helps. 
     
    Kind regards,
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard