Notifications
Announcements
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?
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.
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.
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.
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?
Try using IsEmpty() on ThisItem.'Assigned To' instead of isBlankorError() on the DisplayName of the value
I tried it and did not work
At what point are you using the code? on a control inside the gallery template? or at the gallery level?
On a control inside the gallery
And is AssignedTo a single select field or multiselect?
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268