web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Power Virtual Agents P...
Copilot Studio
Unanswered

Power Virtual Agents Post to Teams Error: To use this bot, publish it in Power Virtual Agents

(0) ShareShare
ReportReport
Posted on by 2

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.
Categories:
I have the same question (0)
  • FaizanShaikh Profile Picture
    2 on at

    Hello, Henry James
    Any news on this matter? This is still open as far as I can see, and I'm having the same problem attempting to incorporate it right now.
    Appreciate your help here! 
    Regards.

     

  • levifranzen Profile Picture
    2 on at

    Same here, tried with developer account and the problem occurs too.

  • mulin Profile Picture
    3 on at

    Hello!

    I am facing the same issue, I have tried to contact support regarding this case with no luck.

    PVA bot is available in MS Teams organisation app store and was published several times 😄

     

    Do you have any time estimates on this issue?

  • Community Power Platform Member Profile Picture
    on at

    Any updates on this issue? Cause I'm having the same issue

  • Community Power Platform Member Profile Picture
    on at

    I'm also getting this currently. Any updates? I believe the bot is published correctly as I'm able to select it in the PA designer for the "Post message in chat or channel" action.

  • HenryJammes Profile Picture
    on at

    I can repro - let me check internally and keep you posted.

  • cbond Profile Picture
    2 on at

    Hi HenryJammes,

    Thanks for the quick reply. 

    I actually did follow the directions from the same link you added but skipped the Active Card part.

     

    As far as the connector, I can share it with you but am unsure of what exactly you are asking for. When looking at the connectors in make.powerautomate.com, there's a big list of them including Teams. Should i be looking somewhere else?

     

  • HenryJammes Profile Picture
    on at

    Hi @cbond,

     

    Do you have screenshots to share about the exact connector you're using in Power Automate?

    Have you followed this documentation?

    Notify bot users in Teams with proactive messages - Power Virtual Agents | Microsoft Learn

     

    Henry

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 330

#2
chiaraalina Profile Picture

chiaraalina 124

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 102 Super User 2025 Season 2

Last 30 days Overall leaderboard