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 / If(!IsEmpty does not a...
Power Apps
Answered

If(!IsEmpty does not appear to work

(0) ShareShare
ReportReport
Posted on by 894
If(
 !IsEmpty(ThisItem.ImageFile),
 AzureBlobStorage.GetFileContentByPath("blobcontainername/" & ThisItem.ImageFile)
)

This bit of code keeps showing a Runtime error. I am baffled as to why. If(!IsEmpty(ThisItem/ImageFile) should prevent it from trying to load from a blank ImageFile. The following message is displayed: PPM - Photo Gallery page: AzureBlobStorage.GetFileContentByPath failed: { "status": 400, "message": "Blob name is null or empty.\r\nclientRequestId: 520d2560-cce1-4145-82f7-508f35bd14c3", "error": { "message": "Blob name is null or empty." }, "source": "azureblob-uks.azconn-uks-01.p.azurewebsites.net" }

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @stapes 

    Consider using IsBlank rather than IsEmpty.  IsEmpty is meant for record types.  IsBlank will work more for your application.

     

    I hope this is helpful for you.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard