Facing Issue in Try catch. If i got an issue in code then my catch part is also throwing an error this is not caturing an image. Screenshot share

Facing Issue in Try catch. If i got an issue in code then my catch part is also throwing an error this is not capturing an image. Screenshot share.

Error Which i am getting after getting error in code.

How to fix this

Hi @Puneet_Singh,

Kindly share the Take Screenshot activity proporties.

Regards

Here it is

Does the process get an error while running on the virtual server, or does it get an error on your own machine?

The activity seems OK, maybe you could try to upgrade or downgrade the version of UiAutomation Activities.

error on virtual machine

Please check the Services on virtual machine. UiPath Robot service must be running on the virtual machine.

If the problem continues, it could be a technical problem. You could contact the technical support and get help.

If you have logged into the VM and then just closed the RDP window, this is your problem. You have to SIGN OUT completely from the VM, not just close the RDP window. So log into the VM, then SIGN OUT, then run your unattended automation.