Writing system exception

Hi Everyone,

i am writing one exception in system exception insition state, but it’s throwing me the error if i am trying to write the condition in else block of if condition. img below for reference.

what i trying to do is, in init all state if this exception occurs, it goes to system exception trasition state and go to the condition and sends an email if that exception occurs else go else block and sends and email with other type.

1 Like

Hi @Rakesh_Tiwari ,

Could you maybe provide a different name to the variable than SystemException ? I believe it might be getting faulted as it might not recognise the difference between the variable and the System reserved keyword SystemException.

Also, on the error being faced, does this happen also when you Debug the workflow, and if so could you let us know the specific activity where it throws the error ?

1 Like

The error message you’re encountering seems to be related to UiPath and the use of System.Windows.Documents.Hyperlink . This issue suggests that UiPath is expecting a Visual or Visual 3D element, but it’s encountering a Hyperlink object instead.
Are you using Hyperlink in your UiPath workflow anywhere?

1 Like

@RobotReader ,

hyperlink not using in workflow, just creating hyperlink in excel file and passing url.

but that should not be the case, i am in sysem exception transition state, just to throw the exception of if condition in else block.

@supermanPunch i am using reserved keyword only not created any variable there.

1 Like

@Rakesh_Tiwari

  1. Can you tell when are you getting this error when you run it?
  2. Can you open details and show full exception

Cheers

2 Likes

no, i am getting this error when i am trying to write the exception in if condition of else block inside system exception transition state(after init state if any exception occur it should go to that state right). imh below for reference

image

full exception below
image

1 Like

@Rakesh_Tiwari

So in action of the transition are you giving this if condition?

Cheers

1 Like

@Rakesh_Tiwari ,

You should be writing condition as SystemException.Message="No Data Available at this time in Markview"

You cannot compare datatypes System.Exception with String

Try this.

Thanks,
Ashok :slight_smile:

2 Likes

You use the variable (exception) in the catch block. The exception text is in exception.Message not SystemException. SystemException is an entire object with many properties. Message is the property that contains the error text (ie exception.message).

1 Like

@Anil_G , yes correct. so i am using if coondition because if that particular exception comes it sends email with the exception else if there is another exception then it goes to else block and sends email with different exception in it.