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,712 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,924 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,186 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.
787 questions
{count} votes

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.