Skip to main content

Notifications

Copilot Studio - Building Copilot Studio Chatbo...
Unanswered

Error when creating a chatbot using Power Virtual agent in MS Pro Dev environment

(0) ShareShare
ReportReport
Posted on by

Hi, I recently got access to the MS Pro Dev environment. I am creating a chatbot using Power Virtual agent in Microsoft Team. The use case needs an action to be triggered to a Power Automate flow. The flow will make a call to an external API (likely an Azure function) and return the result to the virtual agent.

 

When I try to create an action from the Power Virtual agent in the MS Pro Dev environment, I am getting the following error:

PankajGoel_0-1678430263692.png

 

I am able to create bots using the MS Personal productivity environment. Can you help resolve this issue?

  • Re: Error when creating a chatbot using Power Virtual agent in MS Pro Dev environment

    Indeed. Thanks Henry. I was missing the environment maker role which should have been assigned along with the environment access. I have got it now and can create the agent.

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Error when creating a chatbot using Power Virtual agent in MS Pro Dev environment

    Hi @PankajGoel,

    Your error message looks like a permission issue. Does your user either have System Administrator, System Customizer, or Environment Maker? You seem to be missing the privilege to read chatbots.

    Henry

  • Re: Error when creating a chatbot using Power Virtual agent in MS Pro Dev environment

    Hi Peter, I went through the document and followed the steps in "Create a bot in an existing environment" section. I then followed the steps in the link: Create conversational chatbots - Power Virtual Agents | Microsoft Learn

     

    I am still getting the following error. If this is a permission error, can you suggest how this can be resolved?

    Request REQ_ID 773cd291-0ee7-485d-a5d9-f76f4800c97b AuthTicketId failed with error BadRequest (Bad Request): {"error":{"code":"0x80040299","message":"Principal user (Id=308d360e-4d87-ea11-a817-000d3a19be97, type=8, roleCount=1, privilegeCount=0, accessMode=0), is missing prvReadbot privilege (Id=15c8ba91-b24e-49af-83c2-d6cd71377509) on OTC=10086 for entity 'bot' (LocalizedName='Chatbot'). context.Caller=308d360e-4d87-ea11-a817-000d3a19be97. Or identityUser.SystemUserId=6c3fab50-ca57-44e6-b83b-6f9d2fb9035a, identityUser.Privileges.Count=5803, identityUser.Roles.Count=0 is missing prvReadbot privilege (Id=15c8ba91-b24e-49af-83c2-d6cd71377509) on OTC=10086 for entity 'bot' (LocalizedName='Chatbot')."}}
    Trace ID: Trace id not available. Headers: {"content-type":"application/json","x-ms-activity-vector":"00.00.00.00","x-ms-islandgateway":"GA0000003","x-ms-service-request-id":"a4094cd2-35e1-474b-97f3-7f70cadf6b08"}
  • peterswimm Profile Picture
    peterswimm on at
    Re: Error when creating a chatbot using Power Virtual agent in MS Pro Dev environment

    You can review setting up PVA for an environment here: https://learn.microsoft.com/en-us/power-virtual-agents/environments-first-run-experience

     

    If you do not have access to any of those steps you will need to contact the environment admin for help.

  • Re: Error when creating a chatbot using Power Virtual agent in MS Pro Dev environment

    Thanks Peter. I am able to create Power automate flows in the same environment without any issues. I do have access to the MS Pro dev environment.

     

    I am able to create the Power Virtual agent chatbots in the default environment but get error in the MS Pro dev environment.

     

    What additional permissions are needed for this?

  • peterswimm Profile Picture
    peterswimm on at
    Re: Error when creating a chatbot using Power Virtual agent in MS Pro Dev environment

    This is a DLP error; you either need to get permissions from your environment admin, or create the app in a new environment.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard

Featured topics