Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Unanswered

Error Handling in Plugin Actions

(0) ShareShare
ReportReport
Posted on by 18

Hi all,

I have added plugin actions using custom connectors in Copilot studio. And it works fine for success scenario (200 OK).
But for other error scenario its giving below error 
 
Error --> The connector ‘Process Test’ returned an HTTP error with code 400. 
  Error code: ConnectorRequestFailure. Conversation ID: 3b9cbd3b-11db-4c98-a6f6-c856a470db00. Time (UTC): 12/20/2023 2:19:13 PM.
 
I want to handle the exception/status code and want to give proper message to user in copilot.
 
Scenario: 
1) 200 (OK) - working fine
 
2) 500 (server error) - not working
3) 400 (Bad request) - now working
 
Please help...
 
How can I handle the error in custom connectors/plugin actions?
 
Thanks
Categories:
  • Ankitachelani Profile Picture
    Ankitachelani 10 on at
    Re: Error Handling in Plugin Actions

    Hi,
    Were you able to solve this? I am facing a similar issue.

  • KJhutty Profile Picture
    KJhutty 4 on at
    Re: Error Handling in Plugin Actions

    Is it the 500 error that is not working now? You can try adding a case for that too. 

    If that fails, Im free for a short call today if you would like a second eye to help troubleshoot. Im curious about your solution because Im trying to do the same thing.

     

  • jontydadhania Profile Picture
    jontydadhania 18 on at
    Re: Error Handling in Plugin Actions

    Thanks @KJhutty for quick response.

     

    I have added the two responses (200 and 400) in custom connectors. but still getting the same error.

     

    jontydadhania_0-1703142572860.png

     

    Please Help...

    What I have to do for handing the error?

     

     

    Thanks

  • KJhutty Profile Picture
    KJhutty 4 on at
    Re: Error Handling in Plugin Actions

    Hi there,

    What have you configured as your outputs in the connector editor here?

    KJhutty_0-1703085632997.png

    I havent been able to work with the response in the Copilot chat option but maybe you can try adding additional cases for different responses?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard

Featured topics