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 Automate / Power Automate : How t...
Power Automate
Unanswered

Power Automate : How to fetch error message from Scope result

(0) ShareShare
ReportReport
Posted on by 18

Hi Everyone,

 

I am trying to fetch error message for Approval Time Out from Scope result but unable to do so.

Following is the snapshot and steps I have implemented

 

vKartik_1-1678462556814.png         vKartik_0-1678462213455.png

 

Scope 2

 

Compose : result('Scope')

FilterErrorMessage : 

                                 From : Output (from previous step Compose)

                                 item()?['status']  is equal to TimedOut 

SetVariable : 

                    errormessage = body('FilterErrorMessage')[0]?['outputs']?['body']?['error']?['message']

 

Reference Url : https://www.richardawilson.com/2021/06/return-error-in-power-automate-when.html

 

Error message value is not getting populated in "errormessage" variable

Let me know what I am doing wrong and possible fix for the same

 

Categories:
I have the same question (1)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @vKartik 


    does my blog post on this help?

    https://flowaltdelete.ca/2020/09/03/grabbing-error-message-from-failed-run/

  • VKartik Profile Picture
    18 on at

    Thanks for your respose , I am able to fetch error message in my Test flow

     

    In my acutal flow "Start and wait for approval" is inside "Apply for each" loop which is inside "Scope" (Standard workflow  execution) . Following is the screenshot

     

     

    vKartik_0-1678718372803.png

     

     

     

    Now , In the Scope (catch) , result('Stadard_workflow_execution') provides the following error details

    [{

    "name":"Check_Input_option",

    "inputs":{"expressionResult":true},

    "startTime":"2023-03-10T17:35:57.1195822Z",

    "endTime":"2023-03-10T17:37:08.9050632Z",

    "code":"ActionFailed","status":"Failed",

    "error":{"code":"ActionFailed","message":"An action failed. No dependent actions succeeded."

    }}]

     

    Is there a way , I can fetch the error message "The workflow action 'Start_and_wait_for_an_approval' timed out while waiting for webhook callback." ?

  • VictorTek Profile Picture
    127 on at

    Hi

     

    I am trying to get the error of parse json function in try block - I could see error but result('try') it returns initial json and not the error

     

    thank you

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard