Jan 10 2023 03:21 AM - edited Jan 12 2023 02:11 AM
I am developing Microsoft Teams chatbot. Users can start intercating with chat bot only when it is added to Team via apps. Everything works fine when app is added to only one team, however, when I create second team and install the chat bot to the team, Microsoft Teams desktop app suddently starts to crash when chat window is openned. This error does not happen to all of team's users and may not also happen for user who adds the second app. Adaptive cards are used for communication.
I have found temporary fix by clearing the Microsoft Teams cache file at %APPDATA%, but that is not a sollution because I can not clear other users' local cache data.
I started getting compaints from users since last Microsft Teams update in december.
Does anyone know what could cause this?
EDIT: App needs to be added to team to get all user data, after that users interact with the app only through private(personal) conversation.
Jan 12 2023 01:44 AM - edited Jan 12 2023 02:11 AM
Hi
We have the same problem if i understand correctly.
I have made a Powerapp with a button so a few selected People recieve a Power Automate message in Teams when the button is pressed. This was made back in july22
Since December22 i recieve daily complains from only these selected People that their Teams doesnt work.
When selecting the Power Automate Chat, the Chat icon, the Calendar and the Call icon go unresponsive. if i select the Teams Icon it will change to teams. if i select Chat or the above again it wont show the selected in MS Teams.
I have found that if i rightklick on the Power Automate Chat and select "Bot-Unterhaltung sperren" (something like lock Bot conversation) it will prevent the issue from happening (still testing but it seems to work for now on the Accounts i made this change)
The problem is, then the Message will not be delivered...
I cleared all chaches with the following .bat :
@ECHO OFF
goto:main
[+] Description: a simple script to clean up Microsoft Team's Cache (release a bit memory)
:main
taskkill /f /t /fi "IMAGENAME eq teams.exe"
echo "[x] Microsoft Team Processes were closed!!!!"
del /f /q "%appdata%\Microsoft\teams\application cache\cache\*.*" > nul 2>&1
del /f /q "%appdata%\Microsoft\teams\blob_storage\*.*" > nul 2>&1
del /f /q "%appdata%\Microsoft\teams\databases\*.*" > nul 2>&1
del /f /q "%appdata%\Microsoft\teams\GPUcache\*.*" > nul 2>&1
del /f /q "%appdata%\Microsoft\teams\IndexdDB\*.db" > nul 2>&1
del /f /q "%appdata%\Microsoft\teams\Local Storage\*.*" > nul 2>&1
del /f /q "%appdata%\Microsoft\teams\tmp\*.*" > nul 2>&1
echo "[+] Microsoft Team's Cache was cleaned!!!"
C:\Users\%USERNAME%\AppData\Local\Microsoft\Teams\Update.exe --processStart Teams.exe
echo "[+] Microsoft Team Started!!!"
echo "DONE"
Teamsversion: 1.5.00.33362 (64-Bit)
Jan 12 2023 02:07 AM
@Nebucadnezathank for your response but in my situation Users can't block bot conversation because then they couldn't recieve any messages from the bot and that is the whole point of my Microsft Teams app.
Jan 12 2023 07:39 AM - edited Jan 12 2023 07:39 AM
Hi @RobKal
I am in the same boat as you, the issue seems to be related to a recent Teams update. It seems to occur for us when an adaptive card sent via Power Automate has a URL actionable button or a Power Automate flow is waiting on an action from an adaptive card sent to Microsoft teams.
I currently have a support ticket open, have done for quite a few weeks now and it is currently in a "we are investigating" state.
Jan 12 2023 12:09 PM
Jan 13 2023 01:30 PM
Hello,
I am from the Teams product team. Can some of you please share some sample Adaptive Cards here with which you are able to reproduce the issue?
Thx
Jan 13 2023 02:20 PM
@Sid Uppal i dont use adaptive cards.
I just use send Chat message as flow bot in power Automate.
When Ever the flow sends a new message as flow bot, the Teams Chat and call Icon go unresponsive.
I reworked my flow todays so instead of a message, the flow sends an activity into the feed. After some testing it seems this doesnt Breaks teams
Jan 13 2023 04:12 PM
Jan 15 2023 08:41 AM - edited Jan 15 2023 08:43 AM
Im Sending a Chat message (not a Cars) to individual users as flow-bot via power Automate.
I have Seen in the users it happens they have a by mistake typed something in the Chat with the bot but have not Sent it. Maybe this triggers the behaviour
Jan 16 2023 11:32 AM
Here is the whole flow with adaptive card. The last condition just posts a message to a Team's chat and records the result in a SharePoint list.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "WFH Reminder",
"id": "Title",
"spacing": "Medium",
"horizontalAlignment": "Center",
"size": "ExtraLarge",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "Are you working from home today?",
"id": "acPollQuestion"
},
{
"type": "Input.ChoiceSet",
"placeholder": "Are you working from home today?",
"choices": [
{
"title": "Yes",
"value": "Yes"
},
{
"title": "No",
"value": "No"
},
],
"id": "acPollChoices",
"style": "expanded"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"id": "btnSubmit"
}
]
}
Jan 16 2023 10:56 PM
Jan 16 2023 11:06 PM
Jan 19 2023 12:13 AM
We also have the same issue, I have experienced it myself and heard from colleagues. When reading chat messages in Teams sent from Power Automate, the chat becomes unresponsive and Teams has to be restarted. At least when the chat message is an adaptive card. I'm not sure if it happens for regular chat messages as well.
Jan 19 2023 05:03 AM
Ok so i have managed to restore my original deleted Flow (because the workaround with the post in Activity feed is not usable)
Here is the Flow action for sending the Msg:
{
"inputs": {
"host": {
"connectionName": "shared_teams",
"operationId": "PostMessageToConversation",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_teams"
},
"parameters": {
"poster": "Flow bot",
"location": "Chat with Flow bot",
"body/recipient": "@{variables('var_mails')};",
"body/messageBody": "<p><span style=\"font-size: 16px\"><strong>MessageXXYYZZ :)</strong></span></p>",
"body/isAlert": true
},
"authentication": {
"type": "Raw",
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
}
},
"metadata": {
"operationMetadataId": "deleted ID cause internet"
}
}
Jan 19 2023 12:04 PM
@RobKal I am from the product team, and I was wondering if there was any interaction with the power automate's bot input menu while encountering the freeze. We have not had a successful repro so far with above scenarios, so trying to think if there might have been something else in common.
Jan 20 2023 12:38 AM
Jan 20 2023 06:48 AM
Jan 27 2023 07:11 AM
Jan 27 2023 09:35 AM
Hello,
I am from the Product Group.
Update: We have the fix rolling out world-wide and it's expected to complete 100% rollout by early next week.
Thanks,
Jan 29 2023 10:51 PM