cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jamiehandelman
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

5 REPLIES 5
Chris82
New Member

Hi, 

 

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. 

 

Cheers

Chris

sahbai
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 !

gkstor
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".

josephspengler
Advocate II
Advocate II

I had the same issue. Not really a solution, but I found a workaround.

 

I was trying to save to C:\image.png

That wouldn't work any way I tried it.

 

However I was able to save to a network file share:

\\domain.org\home\username\image.png

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,407)