Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?

 

  • Verified answer
    Sundeep_Malik Profile Picture
    6,480 on at
    Re: How to write the error details into the database?

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow