Forum Discussion
Unable to reach app - Adaptive Cards
I've written some adaptive cards to track employee responses to tasks. The adaptive card comes from the power automate 'Post an adaptive card and wait for a response' flow. My card has a single button on it that allows the user to respond and the flow will have a bot post the time at which they pressed the button. However, it seems that Teams randomly doesn't process the odd button press and leaves the error below, however, the response is still posted by the bot so the flow is working fine.
I can't seem to find what is in common between the times when it fails and when it succeeds, has anyone had this issue with Teams and adaptive cards with responses?
It is supposed to be changed to something like below. (The response)
- Prasad_Das-MSFTMicrosoft
Lycius - Could you please share the adaptive card JSON so that we can try it out once from our end?
- LyciusCopper Contributor
Prasad_Das-MSFT Here is a copy of the adaptive card. The Update Message is not an adaptive card itself just "@{variables('StrClientName')}'s @{variables('StrFormName')} was handled."
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "body": [ { "type": "TextBlock", "text": "A Form was Submitted", "id": "Title", "spacing": "Medium", "horizontalAlignment": "Center", "size": "ExtraLarge", "weight": "Bolder", "color": "Accent" }, { "type": "TextBlock", "text": "Received at @{body('Convert_time_zone')}", "id": "acHeaderTagLine", "separator": true }, { "type": "TextBlock", "weight": "Bolder", "size": "Large", "spacing": "None", "id": "acHeader", "text": "Information Below" }, { "type": "TextBlock", "text": "@{outputs('Get_@mention_token_for_Type_1_Notifications')?['body/atMention']}", "wrap": true, "id": "txtMention" }, { "type": "TextBlock", "text": "@{variables('StrClientName')} submitted the @{variables('StrFormName')}", "id": "acDetails", "wrap": true }, { "type": "TextBlock", "text": "Has the associated task been complete?", "id": "acQuestion", "weight": "Bolder" }, { "type": "ActionSet", "actions": [ { "type": "Action.Submit", "id": "butSubmit", "title": "Yes, I have completed any associated tasks." } ] } ] }
- Prasad_Das-MSFTMicrosoft
Lycius - We have tried to repro the issue with the JSON provided, but it worked for us. We didn't get any error message. Please try to update MS Teams version and check if it helps.
Thanks,
Prasad Das
---------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.