Hi
Are there others experiencing errors when attempting to take screenshots in unattended mode? It has worked flawlessly for a year, but suddenly about a month ago, we started encountering errors when taking screenshots. It doesn’t fail every time, but often. We see it fail across different flows, so it is not specific for one flow. It works every time in attended mode.
We have reach out to Microsoft and they are currently investigating the issue, but I wondered if anyone has the same experience
The error message we receive is copied underneath:
Problem while executing action 'TakeScreenshotAndSaveToFile'. Failed to take screenshot. Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to take screenshot. ---> System.ComponentModel.Win32Exception: 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(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize) at Microsoft.Flow.RPA.Desktop.Modules.System.Actions.SystemActions.TakeScreenShot(Variant fileName, Variant screenToCapture, Int32 screenCaptureOption, Boolean copyToClipboard, Int32 fileFormat) --- End of inner exception stack trace --- at Microsoft.Flow.RPA.Desktop.Modules.System.Actions.TakeScreenshotBase.Execute(ActionContext context) at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)