“Save As” in Excel is not working when you change types

This is an old bug without a solution. I faced exactly the same one 4 years later. UiPath cannot choose correctly the Excel type in the Save As option (let’s suppose you choose XLSB, for instance) and retains the previous type when you save (let’s suppose XLSX, for instance).

Now, can this be solved? Yes, I found a workaround:

Click on the arrow :arrow_down_small: at the end of the type (do not click anywhere else):

After, the menu is going to be triggered and display all the options:

Choose one of them manually and that’s all. This solved my problem because now the file was saved correctly in the expected format (XLSB).

1 Like

Hi @fanmixco ,

I’m trying to understand this.
How would Excel (or UiPath Automation) know what the “Save As” file-type is going to be unless you do one of the two things:

Select the drop-down and choose the Save As type and then type just the name of the file without the extension
Or
Do the opposite - type the name of the file with the extension (without) choosing anything from the drop-down.

So, how is Excel expected to know what the Save As type must be even before we decide?

In my opinion, the second process is easier because you will need to know what you are going to be saving the file as before initiating the Save As action in Excel. Besides, it is a single step process as you can skip selecting the file type from the drop down entirely.

Let me know if I understood this correctly.

Hi Andy, the UiPath bug is the following:

ezgif.com-gif-maker

If you go to save as, the logical action is to click and choose from the UiPath dropdown what you want (XLSB, for instance). But as reported 4 years ago, this is not working because it never changes the extension to the correct one. In the end, it saves the file in the previous format again (XLSX, for instance).

However, the workaround that I shared is working as expected when you click in the arrow and choose manually the option from the extended dropdown.

You might be wondering, who would do this long process you suggested? People who have less experience in the IT world or when you want to choose a very specific option that is easy to convert with programming without paying 3rd party NuGets.

Hi, @fanmixco,

you can use "Select Item ‘ComboBox’ it will work in excel

imagem

Hi @Luis261980,

Did you test it until the end? Because it looks exactly the same as my animated gif that didn’t work and is the one that is not working as expected.

In theory, it changes the extension but when you do click in Save as the final step, it saves in the wrong type regardless of how many times you run the bot. If you have a CSV, it will keep saving as CSV even if you choose XLSB or XLSX. I spent a significant amount of time until I thought about the arrow option which is working as expected.

Yes, im using this in some of my Prodoction robots and its working, in this case you dont need to “Click on the arrow :arrow_down_small:

:joy: yes, yes im sorry for my mistake :joy: i was watching my automations and that realy dont work, i forget how i did it, i save the file as xlsx and then move changing the format from xlsx to xls

In conclusion, it’s not working, right? The arrow is the only correct way, then, this is an UiPath bug. If you agree that it’s a bug, please vote for the idea; therefore, it can be fixed by the UiPath team.

Yes I think to add, I wish you could rename an .xls to .xlsx without having to open the application and saving through UI.

I work with Alteryx as well and sometimes you need to even save a downloaded xlsx as xlsx by opening the Excel file in application. Then the input tool gets recognized.

Nice, what about voting for the idea ;)? It would make it more visible to the UiPath team.

Hi @fanmixco . I’m a bit late in the game, but got my attention :).

I tested myself the use-case. Indeed, the SelectItem activity works properly if you click the dropdown arrow before selecting the item.

I will log a bug to fix this in the upcoming release.

Thank you,
G.

2 Likes