Unable to use get asset for save image

Hi, I am trying to save screenshot image. I use get asset activity and add asset in orchestrator ,as for different machines there are different path for the folders to save image. but it is throwing an error. It was working fine for other asset values but not for saved image.
please help

error message
image

uipath properties
image


in orchestrator

Hi, you need to check what is coming out from the Asset in debug mode.

Hi, you might have given the path with only until folder name
Like as ex : c:/user/Raj334/documents/screenshotfolder
But
To save the screenshot you need to give path like
c:/user/Raj334/documents/screenshotfolder/screenshotname.jpeg or .png
Which means you need to give file name also to that screenshot

1 Like

Hi
We need to consider three things here
First as you said

Kindly check whether the right asset with the right filepath is obtained from orchestrator so that if the machine is different we won’t be facing issues

And the second this
We need to ensure that the machine is connected to the orchestrator

And the third one is
While mentioning the file path for Save Image activity we need to mention along with the file and and also the file type extension like .png
So it would be like
ScreenShotPath+”\“+”Yourfilename.png”

Cheers @michelle02

Hi I Gave the proper path
“C:\Users\RPA01\Documents\UiPath\Scans_AllegroHorizon\Error_ScreenShot\ScreenShot”+DateTime.now.tostring(“ddMMyyyyhhmmss”)+”.jpeg"

still no luck