Using the Take Screenshot activity is not throwing error but when I try to save the image it is not saving with a file extension even though one is provided. This is resulting in an empty ambiguous file and the only error message I can find is when I look at the Image variable in Locals it shows this error
The following errors were encountered while processing the workflow tree:
‘VisualBasicValue’: Compiler error(s) encountered processing expression “CurrentScrnSht.UiImage”.(2) : error BC30652: Reference required to assembly ‘UiPath.Vision, Version=3.15.0.0, Culture=neutral, PublicKeyToken=null’ containing the type ‘UiImage’. Add one to your project.
Hi @ncronk2001
Just to confirm, screenshot is being saved but filename with no extension?
what extension you are trying to save your screenshot with?
it is saving a “file” but I can only open it with a text editor and it has no content. I have tried both .png and .jpeg
I have imported this already in my troubleshooting and saw no change
- change system/UIAutomation package version to any other lower or higher
- alternately try to rename packages folder in
c:\users\username\.nugetand reopen project and run
cheers
Could you please share the version of your uiautomation package and system package?
It seems that something is not compatible. Either the Studio version with the UiPath.UIAutomation.Activities, or the saved image argument/variable with your Studio project type.
- Try to upgrade the UiPath.UIAutomation.Activities to a more recent version
- Try to remove the variable saved under the Output of Take Screenshot, and create a fresh new variable for Image.
- If you are using the classic Take Screenshot activity, try to change to its modern version.
Hi @ncronk2001
welcome to Community!!’
Please follow the below steps
- Go to Manage Packages in Studio.
- Install or update UiPath.Vision package.
- Restart Studio and try again.
Hi @ncronk2001
Just update UiPath.UIAutomation.Activities to the latest version. Create a new variable again and try…
happy automation