Waterfall steps are being called out of order #6754
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
Microsoft.Bot.Builder.Dialogs: 4.21.2
Microsoft.Bot.Builder.Integration.AspNet.Core: 4.21.2
Describe the bug
Cross-posting from StackOverflow: https://stackoverflow.com/questions/78064646/botframework-net-waterfall-steps-are-being-called-out-of-order
We are using BotFramework SDK version 4 (.Net) for our Teams Chatbot. Our code makes use of Waterfall dialog. Generally the code is working fine but randomly we are seeing some odd behavior. What we are noticing is that the waterfall steps are being executed out of order.
Our waterfall dialog is pretty straightforward:
Here's the pseudo-code for our dialog:
If all works well, we see the following output in our logs:
However, randomly we are noticing that when a user sends a message to the chatbot, instead of calling
Step1Async
, it callsStep2Async
. At times it would callStep1Async
however thestepContext.Index
value will be either1
or2
(instead of0
and the reason would beEndCalled
instead ofBeginCalled
.We are not able to figure out why this is happening. For many conversations these steps will be executed perfectly but then all of a sudden a random step will be picked up.
Any insights into this behavior will be highly appreciated.
To Reproduce
Unfortunately there is no set way to consistently reproduce this behavior.
Expected behavior
The dialog should follow the same steps always.
The text was updated successfully, but these errors were encountered: