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 / Copilot Studio / More Friendly Error Re...
Copilot Studio
Answered

More Friendly Error Response if Encounter Error

(0) ShareShare
ReportReport
Posted on by 508

Hello All,

I know there is a way to do this just cannot figure it out.  I have a flow that interacts with an excel sheet on sharepoint.  User enteres in inputs, like dates and pay grade and theh bot comes back with an hourly pay rate.  If the user creates an entry in which the excel sheet output is an error.  I would like the bot to display something like this when it doesnt know what to do or the excel sheet displays an error. "You have made an incorrect entry please review your inputs".

 

This is what the bot comes back with.  The user does not know what to do if they see an error like this. 

VeeLearnMSFT_1-1654891017988.png

 

VeeLearnMSFT_0-1654890972635.png

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,874 Most Valuable Professional on at

    Hi @VeeLearnMSFT,

     

    You could introduce a variable and use a set variable which only runs when a specific action fails. In your setup that would probably be the run script, correct?

     

    That would be the simple setup. You can also introduce the usage of scope actions and implement a try-catch pattern. There are loads of examples on the internet about these. Do let us know if you need any additional help implementing that.

     

    Below is an example of the configure run after approach.

     

    1. A short demo how you can configure the Set variable - Has failed action to only run if the Run script has failed. When it succeeds it will just skip this action and continue with the Set variable has succeeded action.

    ConfigureRunAfter.gif

     

    2. An example of the whole flow. As you can see I use the Result variable in the Experience output variable.

     

    variable_experience.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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 895

#2
Vish WR Profile Picture

Vish WR 337

#3
Haque Profile Picture

Haque 276

Last 30 days Overall leaderboard