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 / Why IfError is not wor...
Power Apps
Unanswered

Why IfError is not working for some fallback?

(0) ShareShare
ReportReport
Posted on by 249

I am trying to play with IfError function. When the fallback is not string with non numerical value, ite gives empty value.

I am not clear with the documentation: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-iferror

Could you explain why the fallback in first and second is giving value but not the third? Am I missing something?

IfError( Value( "13a"), "6" ) => 6

IfError( Value( "13a"), 9 ) => 9 

IfError( Value( "13a"), "error" ) => Empty label   WHY?

 

Thank you in Advance.

 

Categories:
I have the same question (0)
  • Brian Dang Profile Picture
    3,976 on at

    Hi @pNabin,

    It looks like you're trying to find out why your IfError expression is not working. You are expecting Value("13a") to be an error and falling back to your second argument.

     

    I am not getting the same results as you. All three expressions are returning a blank label for me.

     

    Value("13a") itself is blank as it doesn't extract a value from "13a."

     

    If your goal is to test if a given string has a value, there may be other ways of doing that. You might want to try IsMatch():

    Let me know if this helps.

     

    Mr. Dang

    _______

  • pNabin Profile Picture
    249 on at

    Hi @mr-dang

    All 3 results are giving empty result for you because you haven't turned on the Formula-level error management in app settings of the app. After the settings has been changed, in my case I have to reload the app in order to reflect the new settings.

     

    Could you try this put and confirm what's be your result?

     

    - Nabin

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard