I want to generate fetal error while robot is process which display in orchestrator and then bot stop processing.
Use the Throw activity with parameter New Exception
. You can optionally provide a message like this New Exception("This is my fatal error message")
.
Alternatively, you could write code that divides a number by zero and that would cause a fatal error as well, but the former solution is preferred.