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 / How to write the error...
Power Automate
Answered

How to write the error details into the database?

(0) ShareShare
ReportReport
Posted on by 2

What I need is for anytime a process fails, the actual error details data to be written into a SQL table.

vinit_598_0-1665121965111.png

How should this be done?

 

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    Hey @vinit_598 

    You can add the particular action where you are getting the error in a scope action.

    Then make a parallel branch after the scope action.

    So on the left side, the flow will go normally and on the right side, add a compose and add the result of the scope to it. Syntax of expression: result('Scopename')   [Note: Default->   result('Scope')]

    Then after this go to settings of the right hand side compose and change its run after property to failed.

    After this use parse json and pass the outputs of the above compose in the generate for sample of parse json action. After that you can add the status that you are getting from in the sql action and save it to your database.

     

    From result function, you get many important things like action name, inputs and outputs of the action. Final status successful or failed. And many other things as well.

     

    Sundeep_Malik_0-1665142045436.png

    Sundeep_Malik_1-1665142096809.png

     

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