How Can I Bypass If Unable To Find Object in Uipath

Hi Guys,

I’m tryting to pass value if doesnt appear coming from activity . Is there any solution about it ?

Error :slight_smile:

I have dght_name string variable output. I need to use this output in IF activity with expression like If string is empty or null keep continue or if is not do second step in Else state.

Best regards,

@burakavuncu

Keep Get Object Distinguished Name activity inside Try block. If its not find any value then it throws the error and will go to Catch block.

1 Like

put "get object distinguished name in try catch statement, under exception assign dght_name = “”

then in if statement use String.IsNullOrEmpty(dght_name)
image

1 Like

What I need to write for assign value ?

Thank you so much !

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.