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 / IsBlankOrError on Powe...
Power Apps
Unanswered

IsBlankOrError on PowerApps encountered an internal error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

For some reason IsBlankOrError  is not evaluating the obvious error in collection or table and treating it as false. Hover over collection and has PowerApps encountered an internal error all over it but still powerapps is evaluating IsBlankOrError  as false.
The point is not why there is an error in collection it is why is IsBlankOrError not detecting the error. Isn't that what it's for? Why and how to work around this? 

Wave_1-1618360536728.png

 

Wave_0-1618360441039.png

 

Categories:
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    IsBlank() and by IsBlankOrError() don't work on collections or tables.  IsEmpty() works with a collection or a table.  IsBlank() only works with text values.  So even if the collection or table throws an error it won't evaluate because its looking for an error on a text value.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes that's what I initially started with but b/c the column is not really empty IsEmpty() evaluates it as not empty even though there is no real data but errors. So how do we work around "PowerApps encountered an internal error" or do we have to say IsEmpty OR  = "PowerApps encountered an internal error"
    and then worry about if they change the wording to that as well with new releases.

     

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    I'm not sure what type of field Details is, but when I replicate your code using the Title column the use of the field inside the First() function results in a record not text.  Its only when I add Title again to the outside of the function that I get a text result.  As I said, IsBlank() only works with text, not a collection or record.  See if intellisense suggests another property past Details.

     

     

    First(Gallery_SPT.AllItems.Title) -> results in a record.
    First(Gallery_SPT.AllItems.Title).Title -> results in a text value.
    
    So 
    If(IsBlankOrError( First(Gallery_SPT.AllItems.Title)),true,false) -> throws error.
    If(IsBlankOrError( First(Gallery_SPT.AllItems.Title).Title),true,false) -> works.

     

     

     

  • shal2522 Profile Picture
    76 on at

    I am using the below code: If(IsBlankOrError(ThisItem.'Assigned To'.DisplayName),"Unassigned",ThisItem.'Assigned To'.DisplayName)

    Where if the AssignedTo name is changed the Assigned to name should be displayed else should show unassigned.

    Even if I change it is defaulting to unassigned.is there a problem with the code?

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Try using IsEmpty() on ThisItem.'Assigned To' instead of isBlankorError() on the DisplayName of the value

  • shal2522 Profile Picture
    76 on at

    I tried it and did not work

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    At what point are you using the code?  on a control inside the gallery template?  or at the gallery level?

  • shal2522 Profile Picture
    76 on at

    On a control inside the gallery

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    And is AssignedTo a single select field or multiselect?

  • shal2522 Profile Picture
    76 on at

    Single select from a dropdown list of users that is fetched from office 365.the name selected should be displayed rather than unassigned if selected 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard