How to get exact name of activity & website selector/UI element name where the process is failing as system exception?

Hi,

I am doing web Automation, but my process get fails at run time on website due to may be website is in loading state, website not working, internet issues, selector or UI element not found on website. Then I used try catch, in catch I used system.exception and how I can get name of acivity & website selector/UI element name where the exact process get fails.

In assign activity I used exception.source +==+ exception.message, but result not get as per my expectation. I am using current version 22.4.4

Anyone can help me on this issue.

Thanks
Rahul

Hi,

We can get name of activity which throw exception as the following document.
Please note that it works when catch exception in invoked workflow.

Regards,

Hi Yoichi,

Thank you for reply,

I need to use it in body of send email notification.
Let me try your suggestions.

Regards

Hi,

I tried as per your logic it is not working.
when I used in assign activity exception.Data(“FaultedDetails”)

showing error:- object reference not set to an instance of an object

Hi,

anyone can help me on this issue?

Regards,
Rahul

Hi,

Did you use it with InvokeWorkflowFile as the following post?

Regards,

Hi Yoichi,

Sorry for delay in reply.

Thanks for your assistance.

It is working when the main file is inside the try catch block, but when a system exception occurs in the child sequence I create an out argument. In the main file in catch block these out arguments got blank value.

How can I get these out arguments values when a system exception occurs in child sequence?

Regards,
Rahul