web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Screenshot not working...
Power Automate
Unanswered

Screenshot not working in unattended mode

(2) ShareShare
ReportReport
Posted on by 22

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)

I have the same question (0)
  • CU18061238-0 Profile Picture
    29 on at

    Hi,

    I am experiencing the exact same problem! This is super irritating because exactly when you want to take a screenshot when an error occurs, making a screen print goes wrong. What is the connection between a (general) error in any action and making a screenprint? The only thing I can think of is the VM that PAD is running on. Would help us a lot if this problem is solved!

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    I use it everyday, and no problems.
    Are you saving it to a file, or saving it to the clipboard?
    Are you running the latest version?

  • Servan Profile Picture
    2 on at

    Save to file and latest version op PAD and latest Windows updates installed. Do you use it attended (also no problem for us) or unattended?

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    Unattended.
    If it fails and you set a retry count to 2 or 3 to see if that solves your problem?
    Sorry for the Danish text in the screenshot, but hope you get the idea.

    Highboy_0-1720090162408.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard