Skip to main content
Question

Should use try catch For child bots

  • August 3, 2026
  • 1 reply
  • 5 views

Hi guys,
im New to automation anywhere. I Breakdown a task into several childbots. each child bots are inside its on try catch method. While calling these Childbots in parent bot should i call tit  inside a try catch again? or without it?

1 reply

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • August 3, 2026

@vshuaib Let’s assume your parent task bot does nothing more than Task Bot: Run actions, launching the child task bots.

The only way the parent task bot would receive an error is if the child task bot is missing. If that’s important to you to track, then yes, add Error Handler: Try in the parent task bot.

Generally speaking, the parent task bot will also be handling the returned message(s) from the child bots. Once again, if any of those things could cause errors, then you want to add Error Handling.

Now, we have shifted gears to using Mozart Orchestrator Processes. This is far easier to deal with multiple task bots (and API tasks, forms, etc.), updates (especially in a group setting), and the moving of data. You may wish to start building using that structure rather than the outdated parent/child model.

https://docs.automationanywhere.com/r/cloud-build/mo-introduction