https://discord.gg/botpress logo
transition to exit not working
# 🤝help
a
I'm having a very strange error. Two different nodes (with the same structure) inside a secondary workflow have a single choice card. Each single choice card has an answer "Return to main worflow" pointing to the Exit node. In 1 case, node "proyecto_ninguno" the transition to the main flow is working. In the other case, node "confirmacion_vale" is failing to transition. As I can see in the LOGS, they key is that the node that is suceeding is showing the event [dm] Leaving workflow. __Succesfull node "proyecto_ninguno"__ [972b4051e5] [dm] : [Capture] User clicked on a button, so we are skipping the cognitive extraction [972b4051e5] [dm] : [Capture] Prompt success [972b4051e5] [dm] : Transition from (flow:Vale de compra) [node:proyecto_ninguno] to [node:Exit] [972b4051e5] [dm] : Leaving workflow (flow:Vale de compra) [node:Exit] back to (flow:Main) [node:Standard2] [972b4051e5] [dm] : Execute transition "Exit" __Failing node "confirmacion_vale"__ [4b643a3fe8] [dm] : [Capture] User clicked on a button, so we are skipping the cognitive extraction [4b643a3fe8] [dm] : [Capture] Prompt success [4b643a3fe8] [dm] : [Capture] Field validation successful! Extracted: "Volver al menú inicial". Input: Volver al menú inicial [4b643a3fe8] [dm] : Transition from (flow:Vale de compra) [node:confirmacion_vale] to [node:Exit] [4b643a3fe8] [agent-hook] [SummaryAgent] [conversation_turn_ended]: Last 10 transcript messages available --> {{conversation.SummaryAgent.transcript}} [4b643a3fe8] [agent-hook] [SummaryAgent] [conversation_turn_ended]: Summary updated based on 1 new messages --> {{conversation.SummaryAgent.summary}} [4b643a3fe8] [dm] : Saved states: agentsConversationVariables, context, session, conversationVariables, conversation (Conversation: conv_01JYM6QV7R0R4BJTYJK8WAHQWA) [4b643a3fe8] [dm] : Stack trace for event See attached the setup of the SingleChoice cards. In both cases, the answer "Volver al menú inicial" point to the Exit node. https://cdn.discordapp.com/attachments/1387704438269018172/1387704438868672522/AAHar4fBXiWwgSW44qk4mLuVy9dpaAD5IoT9479mgREk2VtEYadzrpZ6gWcn1TCHo46YUSNxeN1fFKNOHRoOxqU-iXAHNRnGUceT9I32-znprWF0krIZgOKiJqZHGYFh0R4bV3M2ZtYmVogSucClZWSJEln5er4qko5jTmRMulCft-SghyuDRrfUe1t84NMhEHD0zxcn6kVMBbmdk4Lwr8WvidZGEgeVSWNhMezSYoIVNcPiZuuF44zyVTtE8fE6Qw9TorbSDuhPrNQhIRgg3dP_drQKXR5W_XLr3bEd.png?ex=685e4ff8&is=685cfe78&hm=0027d491953f092b6d8bb32a1f36763ddd089006c36e5c49d48223c59296e477& https://cdn.discordapp.com/attachments/1387704438269018172/1387704439267135498/image.png?ex=685e4ff8&is=685cfe78&hm=db54e04ae133592aa39fc7130ec87831d8f37f06ad6a70362dff0ca7fe47982f&
b
Just in case, have you tried deleting the node and creating it again? Sometimes something can get messed up in the background, and deleting and recreating it has worked for me.
a
I've tried but didn't work.
p
Can you send a report id? You can find it by clicking resource > report a problem > fill in the cells with as much details as possible > paste the id generated here
a
Report created: report_01JYPYC6J31S9XW8NMVE2C7X9Q
p
I have not encountered any issues with your bot. Can you provide an example of a conversation in which the Vale de compra workflow fails to return/exit?
a
p
Thank you for the video, it helped my understanding a lot! I'll keep looking into it.
a
Any updates?
@prehistoric-airplane-85682 any update?