Skip to main content

Notifications

Building Copilot Studio Chatbots in Microsoft T...
Unanswered

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

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?

Categories:
  • PankajGoel Profile Picture
    PankajGoel on at
    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

  • PankajGoel Profile Picture
    PankajGoel on at
    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.

  • PankajGoel Profile Picture
    PankajGoel on at
    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.

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,990

#3
Expiscornovus Profile Picture

Expiscornovus 1,700

Featured topics