Skip to main content

Notifications

Community site session details

Community site session details

Session Id : t1NKfnY3XO6CubQNOQxpxq
Copilot Studio - Topic Creation & Management
Answered

Bot displaying wrong conditional nodes

Like (0) ShareShare
ReportReport
Posted on 5 May 2020 08:00:18 by 221

Hi all,

 

weird situation - I have a bot that in the canvas visibly goes down the right nodes after a condition, but in addition, displays the message from the other branch of the condition:

 

canvas.pngconversation.png

 

Any ideas?

  • CleberM Profile Picture
    on 07 May 2020 at 22:14:33
    Re: Bot displaying wrong conditional nodes

    I'm glad to hear that was the issue @Kikoger.

     

    I'll take the feedback that this is not very clear, we might add extra documentation or UI hints about it.

  • Kikoger Profile Picture
    221 on 07 May 2020 at 20:59:11
    Re: Bot displaying wrong conditional nodes

    Hi CleberM,

     

    thanks for the explanation - looks like thats it 🙂 I just assumed it would leave the variables as null and pass null values to Flow in the next step. A bit unfortunate I need to have a branch for a Flow action that really does the same thing as the other branch, but of course not an issue.

     

    Thanks again!!! 😊 

  • Verified answer
    CleberM Profile Picture
    on 05 May 2020 at 21:05:43
    Re: Bot displaying wrong conditional nodes

    Hi @Kikoger ,

     

    I believe what's happening here is that the bot is trying to fill in the "VarSearchTerm" variable before passing it as an input to the Action in the last node. The only node that fills that variable is the one it's jumping to. Otherwise the value of "VarSearchTerm" would be undefined, and the bot does not send undefined variables (hence the behavior).

     

    This is a feature of the bot, where we try to fill the variable before using it. If you don't want this to happen, you would have to separate those two branches to call action with different variables, without using "VarSearchTerm" on the right side (the one you have highlighted).

     

    Let us know if this explains the behavior.

  • CU22081450-0 Profile Picture
    Most Valuable Professional on 05 May 2020 at 13:10:21
    Re: Bot displaying wrong conditional nodes

    Yes, the problem is here.

    You cannot call the Power Automate using the variable that not contains a value. Your variables are using in another node, you cannot send to Power Automate in this node.

  • Kikoger Profile Picture
    221 on 05 May 2020 at 13:06:34
    Re: Bot displaying wrong conditional nodes

    The remainder of the actions are not triggered, because it is waiting on the input for the question. 

     

     

    rest.png

     

    It's stuck here:

     

     
  • CU22081450-0 Profile Picture
    Most Valuable Professional on 05 May 2020 at 13:01:47
    Re: Bot displaying wrong conditional nodes

    😞 @Kikoger 

     

    Take a picture after this action, please.

     

    Annotation 2020-05-05 100051.png

  • Kikoger Profile Picture
    221 on 05 May 2020 at 12:58:43
    Re: Bot displaying wrong conditional nodes

    Hi @renatoromao,

     

    yes, I did. I also published the bot and tested it in production - same behavior. It's most odd. I could of course just rebuild it, but I kind of rather understand what is happening. 😅

     

    Thanks!

  • CU22081450-0 Profile Picture
    Most Valuable Professional on 05 May 2020 at 12:55:37
    Re: Bot displaying wrong conditional nodes

    Hi @Kikoger ,

     

    Did you try to reset the test chatbot?

    And after your action calling to Power Automate, which message do you show?

     

     

    ---

    Thanks!

    Renato Romão

    https://www.linkedin.com/in/renatoromao/

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard

Featured topics

Loading started
Loading complete