All,
I have been struggling with this error for 2 days now. A developer had created and set up a PVA ChatBot to post to Teams but would always receive the error below, even though the chat bot is published. He wouldn't have been able to add the chatbot to the PA Flow when developing the Flow if it wasn't published so this error doesn't make sense to me.
As a global admin, I tried to recreate his error with my personal power platform environment. I created a new chatbot, published it and connected it to teams, created a new flow in PA, and tested Teams posting with both Post as "User" and "Flow" and they work perfectly fine. However, when i switch to Post as PVA (Preview), I receive the same error as the developer. I have deleted and recreated the chatbot and flow twice.
(I removed the IDs)
{
"error": {
"code": 502,
"source": "flow-apim-unitedstates-002-eastus-01.azure-apim.net",
"clientRequestId": "",
"message": "BadGateway",
"innerError": {
"id": "",
"messageLink": "",
"error": "To use this bot, publish it in Power Virtual Agents. Error code: 2009. Conversation ID: . Time (UTC): 6/1/2023 2:14:19 PM. RequestId : "
}
Forum and Google searching has gotten me nowhere on this issue.
Does anyone have any idea to fix this error? I would really appreciate it.