Take Screenshot activity shows error in Unattended Process

Hi,

When I try to run a process from orchestrator, the take screenshot activity throws an error. Since it is an unattended bot am not accessing the machine. But when i run the same process as an attended one there is no issue. Please see the below error details that i get while running the bot from orchestrator.

Take screenshot: System.ComponentModel.Win32Exception (0x80004005): The handle is invalid at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation) at System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation) at UiPath.Vision.UiImage.FromScreenRegion(Rectangle region) at UiPath.Core.Image…ctor(Region screenRegion)

Hi @Basil_Benny

You can enable the recording for your process on your Orchestrator, that takes screenshots in an interval that allows you to evaluate the issue you are facing.

Regards,
Andres