Hi everybody,
I’m having issues with “take screenshot activity”. Sometimes (rearely, like 1 every 15-20 times) it gives me the following error:
message: Invoke TakeScreenshot workflow: 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)
level: Error
For the first year and half I never got this problem, since last week it started. Has anyone got the same problem?
I also thought that could be related to a new process o something like that which runs recently. But I don’t know how to investigate and find it.
Thanks
Anil_G
(Anil Gorthi)
September 19, 2023, 12:27pm
2
@massimilianolorenzin
This error comes when the vdi is left open without logging out…or is left login and the next bot has started
Make sure you logout the vdi/vm before you start the next process
cheers
hi Anil,
thanks for answering.
About the logout, if it’s not done by a previous process (robot), shouldn’t be the vdi “busy” and then the new process shouldn’t be able to start?
How do you log out the process ?
Anil_G
(Anil Gorthi)
September 19, 2023, 12:43pm
4
@massimilianolorenzin
Generally that depends on the robot settings…In robot settings we have option to lgoin to console…we can enable it.
it shoudl ideally logout but in newer versiosn sometimes we are seeing this issue…
the vdi is left open but the bot closes…if login to console is set to true then we can
cheers
postwick
(Paul)
September 19, 2023, 1:03pm
5
Log into your server as the robot account, then click Sign Out. You always have to sign out, you can’t just close the RDP window.
I’ve set the setting to log it out automatically. The strange thing is that it doesn’t happen always, but rarely
massimilianolorenzin:
hi, thanks for answering. What if it happend just once every two weeks (on average)? And it’s scheduled twice a day every day.
how come it works fine all the other times?
hi, thanks for answering. What if it happend just once every two weeks (on average)? And it’s scheduled twice a day every day.
how come it works fine all the other times?
Anil_G
(Anil Gorthi)
September 26, 2023, 9:19am
9
@massimilianolorenzin
May be sometimes its left without logging off…or someone would have logged in and not closed the session
cheers