Issue: "Something went wrong. Please try again." Error on Submit/Approve Button in Adaptive Card for Teams Bot

Tuba Naeem 0 Reputation points
2024-09-04T17:11:49.7933333+00:00

I'm encountering an issue with my Microsoft Teams bot where the adaptive card displays the error message "Something went wrong. Please try again." whenever I click the Submit or Approve button. Despite this error, the bot successfully receives a response from the backend.

Details:

Scenario: The issue occurs when attempting to submit a form or approve an item from a table using an Adaptive Card within a Teams bot.

Backend Response: The backend does return a response, but the adaptive card still throws the error.

Adaptive Card JSON: Below is the JSON code for the Adaptive Card used for form submission:

{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Please fill out the form below:"
},
{
"type": "Container",
"id": "createLeaveContainer",
"items": [
{
"type": "Container",
"id": "request",
"items": [
{
"type": "Input.ChoiceSet",
"id": "leaveType",
"style": "compact",
"choices": [
{
"title": "Vacation outside KSA",
"value": "VOUT"
},
{
"title": "Exit Re-entry Request Hol",
"value": "EXRL"
},
{
"title": "Vacation Inside KSA",
"value": "VIN"
}
],
"placeholder": "Select leave type"
},
{
"type": "Input.Date",
"id": "startDate",
"placeholder": "Select Start date"
},
{
"type": "Input.Date",
"id": "endDate",
"placeholder": "Select End date"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"action": "createLeave"
}
}
]
}
Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,866 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,077 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,244 questions
Microsoft Q&A
Microsoft Q&A
Use this tag to share suggestions, feature requests, and bugs with the Microsoft Q&A team. The Microsoft Q&A team will evaluate your feedback on a regular basis and provide updates along the way.
838 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 2024-09-10T18:01:19.0733333+00:00

    @Prasad-MSFT About 1 year ago, you begin did a answer in this link https://learn.microsoft.com/en-us/answers/questions/1365758/how-to-enable-microphone-icon-on-my-azure-bot-on-m but did'nt a continuate with this topic. I'd like to ask for you if you know how can we solve this problem (link).


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.