Skip to main content
Navigator | Tier 3
September 12, 2025
Solved

Child bot output variable doesn't go to a mapped Parent bot variable

  • September 12, 2025
  • 21 replies
  • 390 views

Hi to all! This is my first post here. I’m new in this platform but I’m I have been working on other platforms such as UiPath and BluePrism for years.

 

I’m not sure is this a bug or that’s how it works because it doesn’t makes sense to me:

  1. I have PARENT bot and a CHILD bot.
  2. In CHILD bot I defined an output variable ‘out_childVar_str’ (output checked)
  3. I have mapped this variable with an appropriate variable in the PARENT bot (parentVar_str).
  1. In a Child bot I assign a value to a variable ‘out_childVar_str’.
  1. After that assign action, I simulate an error with a throw then bubble that error to a Parent bot
  2. NOW...my problem is that parent variable (parentVar_str) has not getting the value from the mapped Child bot variable (out_childVar_str)

 

When I go through the child bot without a simulated error, the parent variable gets populated with the value from the child bot variable as it should be.

But with the simulated error this just not working. Please help me with this one!

 

Thank you!

 

Best answer by Aaron.Gleason

@dean.hubak The Catch action allows you to assign error information to an “Error Message” string and an “Error Line Number” integer. Those values can be assigned to variables that can be marked as output.

Then, when flow returns to the parent, you can check if the “Error Line Number” value is greater than zero. If so, an error occurred. 

Here’s my parent bot:
 

I used your variable naming scheme for clarity

Here’s my child bot:

When I run the parent bot, it displays a message box with 123 in it.

I hope this clarifies things.

21 replies

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
September 21, 2025

Exactly! A Try without a Catch lets you just move on as if the error never happened. No need to make your code more complex than it needs to be. 

Just experiment with Debug more or Message Boxes in your code so you can inspect the variables throughout the error handling process.