Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
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:
  • Verified answer
    Expiscornovus Profile Picture
    31,711 Most Valuable Professional on at
    Re: More Friendly Error Response if Encounter Error

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard