web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 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
    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
    68,717 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
    68,717 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
    68,717 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
    68,717 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard