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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Condition Failed with ...
Copilot Studio
Answered

Condition Failed with Entity

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

So I customized an entity with two choices and use the condition "All other condition" as a "else" in my PVA.

However, when I type anything other than the two choices I have, it never execute the branch of  "All other condition."

Is there a reason for this??

 

Chia

Categories:
I have the same question (0)
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @Anonymous ,

     

    When you are working with an entity, you define some fixed values to the user.

    Also, you can use conditions for each option, but it's not available yet to receive a different value than options pre-defined.

     

    You can create an artificial intelligence in your bot adding some similar options, this intelligence will help you to simulate some different scenarios. Take a look at a Money entity (is defined by Microsoft)

    Also, you can see this documentation: Create and use entities - Power Virtual Agents | Microsoft Docs

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Oh, it couldn't execute the "all other condition."

    @renatoromao 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @renatoromao 

    So in my case, I need to predifine all other majors as "other majors" in my entity, in order to do the filter job? Is there any other options?

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    I recommend you to create all options (5, 6, ...10, or how many you want) that your user maybe will say when will talk to the bot, but display 2 or 3 options in the chat.

    Create a condition for your 2 or 3 options that you display, and create "all conditions" to other options.

     

    @Anonymous 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much, but I have one more question to ask here:

    Is there a way that I can use one entity to categorize another entity?

    For example,

    Biochem is under Bio(entity1) and Bio is under STEM(entity2).

    @renatoromao 

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    @Anonymous ,

     

    You're welcome! 🙂

     

    You can categorize two categories at the same time, but not one behind another.

    Follow the documentation to understand better about the two entities in the same message: Create and use entities - Power Virtual Agents | Microsoft Docs

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @renatoromao 

    Thank you, but I mean that STEM is another customized entity, not a different predifine phrase under the same entity with Bio.

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Yes, I got it!

    For example:

     

    Entity 1 - Products - rice, bread,..

    Entity 2  - Money - $1000, $5000,...

     

    Question 1 - What is the product? (entity 1)

    Question 2- Ok, how many you will expend? (entity 2)

    Message - Thanks, you selected VarProduct and VarMoney

     

    Bot: "What is the product? "

    User: "I want a rice less than $1000"

    Bot: "Thanks, you selected rice and $1000"

     

    The PVA bot will recognize these two questions.

    @Anonymous 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 370

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 57 Super User 2026 Season 1

Last 30 days Overall leaderboard