I am trying to throw a business rule exception and trying to capture it in another workflow. But always getting the “Throw Faulted” error in the child XAML, run the main XAML in debug mode, you can see the issue. Share me if you have any idea on this.
Hi @sarathi125, where you have this: new UiPath.Core.BusinessRuleException(“Business exception occurred”), replace by new BusinessRuleException(“Business exception occurred”)
The flow is working correctly for me - write Line is being executed.
from what I can see there are two issues here:
The exception is already being caught in the Child workflow so it will never reach the TryCatch-Block in the Main.xaml
The “Throw Faulted” in the output when you are using the Debug mode is only the verbose output and telling you that a throw has occured. The throw itself is actually not faulting.
If you remove the try catch in the child the message box is displayed.