Jan 31 2022 12:51 PM
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)
Jan 31 2022 09:54 PM
@Lycius - Could you please share the adaptive card JSON so that we can try it out once from our end?
Feb 02 2022 08:24 AM
@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."
}
]
}
]
}
Feb 07 2022 01:15 AM
@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.
Feb 07 2022 09:27 PM
Feb 08 2022 06:55 AM
Feb 08 2022 11:29 AM
@ChetanSharma-msft Definitely still happening. We had one not work just now.
Feb 08 2022 11:50 PM
@Lycius - We have tested the scenario again in both Teams web client and Teams Desktop Client(Microsoft Teams Version 1.5.00.3276 (64-bit). It was last updated on 03-02-2022) and its working in both cases.
Feb 10 2022 08:39 AM - edited Feb 10 2022 08:42 AM
@Prasad_Das-MSFT
As I said, it's intermittent, it happened again at 10:24 and 10:30 AM this morning but worked with the previous 9 cards. As the problem is intermittent is there some way to review logs or information on my end and note when it occurs so I can send the logs to you? I had originally thought it had something to do with replying then processing the card but that's not always the case. (The first example is missing the error because it only displays once and if you leave and return the button is just dead without the error appearing again when you click on it.)
Feb 11 2022 01:58 AM
@Lycius -Could you please check the behaviour in Teams web client and if possible please share console logs?
Feb 11 2022 12:39 PM - edited Feb 11 2022 12:55 PM
@Prasad_Das-MSFT This has the logs from the last day and a bit, as mentioned before the errors occurred close to 10:24 and 10:30 AM my time. (GMT -6 Saskatchewan)
I will test the web client over the next few business days with the hope of either not running into the issue or encountering it again. (If it's an issue specific to the desktop app at least we narrow it down.)
Would logs from Power Automate be of any use for the runs containing the cards that have the error in Teams?
Feb 13 2022 09:45 PM
@Lycius -Yes ,If you can send Power Automate run logs, that will be more insightful
Feb 14 2022 09:45 AM - edited Feb 14 2022 09:47 AM
@Prasad_Das-MSFT
This is the PA overview and the log from the "Post an Adaptive Card and wait for a response" portion of the 9:45:54 AM one from above, they aren't failing. At this point, I don't know where a log showing the actual error would be. If you have any suggestions of additional things I can provide please let me know.
{
"responseTime": "2022-02-10T16:24:42.2140241Z",
"responder": {
"objectId": "4a58e735-22a1-4009-a8e9-4826c679b9a6",
"tenantId": "fef7b581-dfeb-4de7-a544-9800421ba919",
"email": "Email address removed",
"userPrincipalName": "Email address removed",
"displayName": "User Removed"
},
"submitActionId": "butSubmit",
"messageId": "1644507957204",
"messageLink": "https://teams.microsoft.com/l/message/19:e605852af55c48b5be7f00cb2ff61930@thread.tacv2/1644507957204"
}
Feb 15 2022 02:55 AM
@Lycius - Although we are still not able to repro the issue, we have raised a bug for this and engineering team is looking into it.
We will inform you once we get any update. Thanks!
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.
Feb 15 2022 08:50 PM
@Lycius -Could you please share a network trace from an attempt to click on the button?
Feb 17 2022 08:16 AM
@Prasad_Das-MSFT
Sure, it may take a couple days as I'll need to have it reoccur. I also haven't seen it occur with the web version which makes me think it might be a network issue as well.
Feb 18 2022 09:39 AM
@Prasad_Das-MSFT Here is a 3 minute trace leading up to this failed event. The error isn't shown as it goes away if I switch teams but the card has not updated after the follow up for the flow left the reply.
Feb 22 2022 08:17 PM
@Lycius -Engineering team is having trouble interpreting this event viewer. Could you please use edge/chrome dev tools to capture and generate a har file What Is a HAR File? - KeyCDN Support or fiddler to capture a network trace? Create a Session Archive Zip (SAZ) Traffic Archive | Fiddler Classic (telerik.com)
Feb 23 2022 11:43 AM
Mar 13 2022 10:26 PM
@Lycius - Did you get any chance to check the issue and share logs?