Copilot Studio Error After Removing a Member from a Team via Graph API (Conversational Update trigger)
I am developing an agent in Microsoft Copilot Studio. In Power Automate, when I use the "Add a member to a team" Teams connector, the user is successfully added to a team, and I receive an eventType in Copilot Studio.
However, since Power Automate does not have a "Remove a member from a team" connector, I am performing the removal operation via Microsoft Graph API.
When I send the Graph API request to remove the user from the team, the user is successfully removed, but Copilot Studio immediately throws an error, and even the OnError topic does not trigger.
Successful Add Member Response:
{
"eventType": "teamMemberAdded",
"team": {
"aadGroupId": "4b6af890-ff2e-4632-89e9-4e0d854b4613",
"id": "19:gYxjJ455I5xCEGTu8bQrGLkYwCCgMJGskP_p41oxCQc1@thread.tacv2",
"name": "test"
},
"tenant": {
"id": "4ad48943-bae0-43b0-8437-5f654196d73e"
}
}
Error Message After Removing the Member via Graph API:
Teams displays the following error message:
"Sorry, something unexpected happened. We’re looking into it. Error code: SystemError. Conversation ID: 19:gYxjJ455I5xCEGTu8bQrGLkYwCCgMJGskP_p41oxCQc1@thread.tacv2. Time (UTC): 3/17/2025 3:02:02 PM."
This issue prevents Copilot Studio from functioning properly after a user is removed from a team.
Could you please provide guidance on how to handle this scenario and ensure that Copilot Studio does not break after a Graph API-based removal?
Currently, in Microsoft Copilot Studio, even when using a condition inside the "ConversationUpdate" trigger, I am unable to prevent the Teams error message after removing a member via Graph API.