Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Failure to save screenshot

I have a power automate desktop flow where I am trying to take a screenshot with the web recorder and save it to a folder. The save fails every time. Any insight is appreciated. Thanks!


Error message: 

Robin.Core.ActionException: Failed to save screenshot to file. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
at Robin.Modules.WebAutomation.Actions.WebAutomationActions.TrySaveScreenshotOfWebPage(FileVariant fileName, Image image, ImageFormatEnum fileFormat, Boolean copyToClipboard)
--- End of inner exception stack trace ---
at Robin.Modules.WebAutomation.Actions.TakeScreenshotBase.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement) 


2021-06-02 16_55_06-Window.png

New Member



I would recommend to use "Set variable" action to store the path. Thanks to that you will get a preview of the value through the "Variables" section located on the right-hand side. 




New Member

I'm experiencing the same issue as well. Flows have been running for months without a problem, this just started happening week of 5/30/2021

i am also experiencing this issue !

Regular Visitor

It happens because you already have a folder with the same name. To avoid it, you can use the action "if folder exists".

Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,373)