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 / IfError is unable to c...
Power Apps
Unanswered

IfError is unable to capture failed flow that is been called from power apps

(0) ShareShare
ReportReport
Posted on by 2,132 Season of Giving Solutions 2025

I have this code to call a flow inside an AddPicture control On change property:-

IfError(
 PopulateWorkOrderPictures.Run("Before",varWorkOrder.'Work Order Type'.Value,TextInputPicNoteBefore.Text,varWorkOrder.ID,LookUp('Posting UnPosting Processes Posting UnPosting Forms','Posting UnPosting Form ID'= varWorkOrder.RelatedProcessID).'Posting UnPosting ID',

{file:
{
 contentBytes: UploadedImage1.Image,
 name: AddMediaButton1.FileName
 }}),
 Notify("Error",NotificationType.Error,10000),
 Notify("Success",NotificationType.Success));

but i am always getting Success notification on power apps, even when the flow fails, here a failed flow which i called from power apps:-

 

johnjohnPter_0-1701467454389.png

 

but i got Success notification on power apps when i called this flow which failed.. any advice how i can capture failed flows inside power apps, so i can show a relevant notification accordingly ?

Thanks

 

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @johnjohnPter ,

    Try using Respond to a Power App or Flow at the end of the Flow and send back a text value (anything will do),  then set a Variable to the value returned

    UpdateContext(
     {
     varSuccess:
     FlowName.Run( . . . . . ).returnedvalue
     }
    )

    then test for a value being present in the Variable.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • johnjohnPter Profile Picture
    2,132 Season of Giving Solutions 2025 on at

    @WarrenBelz so you mean i need to return either of 2 values? one when the flow successes and one when the flow fail?

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @johnjohnPter ,

    Unless you dive deeper into some error trapping in the Flow, you will get no return at all (so the variable will be blank) - all you have to do is check if the Variable contains a value (if not, the flow did not succeed)

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard