cancel
Showing results for 
Search instead for 
Did you mean: 

Interacting with Save As window

Anonymous
Not applicable
Hi,

Have anyone faced issues while interacting with Save As standard window in Windows 10? We've tracked the window and its parts, tried different elements, but nevertheless after entering the full filepath the file appears to be saved in some default folder. It's very weird. This exception occurs in perhaps 70-80% cases.

Any advice is highly appreciated. Example of the window attached. Thanks!

------------------------------
Anton Sauchyk
Senior RPA Analyst
EY
Europe/Minsk
------------------------------
10 REPLIES 10

AmiBarrett
Level 12

Can't say I've run into that.

Have you tried filling the folder path at the top first?



------------------------------
Ami Barrett
Sr Product Consultant
Blue Prism
Plano, TX
------------------------------

Anonymous
Not applicable
Yep, the same story. We also added extra waits, but it just decreased the chance of such behavior not resolved it completely.

------------------------------
Anton Sauchyk
Senior RPA Analyst
EY
Europe/Minsk
------------------------------

ritansh.jatwani
Level 9
Hi Anton,

Can you please confirm if you are using Write stage to write the path of the file in the textbox of Save As window?

------------------------------
Ritansh Jatwani
Consultant
EY
Asia/Kolkata
------------------------------

I've honestly had more success using Global Send Keys than a write stage on this window. But hey, whatever works!

------------------------------
Ami Barrett
Sr Product Consultant
Blue Prism
Plano, TX
------------------------------

ritansh.jatwani
Level 9
Hi Anton, 

Please follow the below steps to make your bot more stable:

1) If you are able to spy "File Name" textbox using "Win32" mode then use Write stage and pass the full path of the file including extension of the file e.g. C:\Testing\Test.xlsx and hit save. It will always save to the correct path.
2) If the above method doesn't work using Win32, then please use AA mode to spy the textbox and try using Write stage. If write stage fails, then only go to the Global send keys option since it's less reliable.
3) If you are planning to use Global Send Keys, then instead of writing the full path from Global Send Keys, first copy the full path using Copy Clipboard (Environment utility) and then use Ctrl+V from Global Send Keys. In this way, the reliability factor gets increased and your bot will be more stable than writing the whole path from Global send keys.

Please let me know if the above method didn't work for you.

------------------------------
Ritansh Jatwani
Consultant
EY
Asia/Kolkata
------------------------------

Hey Ami,

I had equal success rates with both the approaches, with write stage as well as GSK. Additional exception handling on GSK approach does wonders in the code and it works fine.

------------------------------
Ritansh Jatwani
Consultant
EY
Asia/Kolkata
------------------------------

Hi Anton,

Don't use write stage try using Global send keys. It will work perfectly. This problem starts after 6.1 or 6.2. What happens actually even if you are writing using write stage but it will be not written in the field so when you click on save it will save on the default folder with default name.

------------------------------
Amlan Sahoo
RPA Consultant
Equinix
------------------------------
Regards,
Amlan Sahoo

gmarquez
Level 6

Hi Anton,

This function can be tough to automate because it seems like every application has a different type of Save As window that gets generated when you use the Save As function form the application.  Tableau's save as box is a tough one to deal with for example.  In this case, we usually recommend trying to use the Utility File Management VBO to save the file to the default directory and then move it to the desired location with the desired name. If this fails, then you can try to use Surface Automation as a last resort.

Here are some steps for the Utility File Management way:

Check if File exists
  1. Inputs Tab - Check if File exists   (Under Business Object →Utlility-File Management/ Action →File Exists
     
  2. Outputs Tab – Store In  create the flag output Item
Save the Default Filename
You will take the defaulted filename that is given within the Window.
  1. For example I have created a Navigation Stage with that sets focus to the Window (You can do this multiple ways)
  1. Then I created a Navigate Stage that Clicks on the Save Button.
  1. Just as a precaution I have added the catch to see if the Replace or overwrite Dialog box is present.  This is done by first creating a Decision stage to check for the presence of the Dialog Box.  You will have to spy the Dialog box and retain the image.  You will want to create a Data item that will hold the image after it has been spied.  
    Replace Data item
     
  2. Next, Create a Read Stage that will read the image
      Please note that you will have store the image for comparison.  
  3. Next, Create a Decision Stage that will Compare the 2 images
     
  4.  After the Decision Stage is created you will want to set the Yes and No up to the appropriate next steps.
Move File
  1. Create another Action Item Under Business Object →Utlility-File Management/ Action →Move File
     

     
    Please note you will need to Create the values of the File Path and Destination Path as Data Items
Rename File
  1. Rename: Next create the Actions and Navigate field that will rename the filename please see the example below:
     
Delete Default File

 
  1. Delete the File: Create a Data Item that has the File path information. Next create and Action Item Under Business Object →Utlility-File Management/ Action →Delete File
     

     
    Please make sure that the Outputs are created.
Check default file present
  1. Finally, confirm that the Deleted File does not exists.  
     


------------------------------
Gabe Marquez
Technical Support Engineer
Blue Prism
------------------------------

RodrigoInsua
Level 2
Hi Anton, we are having exactly the same problem when trying to save a report from different homebanking pages. 
Please, let us know if you get to fix it! 


------------------------------
Rodrigo Insua
------------------------------
Rodrigo Insua RPA Analyst AMR, Argentina.