Robot stalls while attempting Refresh Excel Data Connections activity

Hi, everyone.

I built a process that uses the Refresh Excel Data Connections activity. This activity works on my laptop that runs on Windows 11 Pro. However, this activity stalls out and is never completed on my VDI that runs on Windows 10 Enterprise. Any tips for getting this activity to work?

My other thought is to use the GUI to click the Refresh button, but I really don’t want to do that.

Thanks.

Hello @Joe_Matuch!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

I’m currently unable to see if this activity will work from Orchestrator. Anyone out there have an idea for how to get the data connections in the Excel to refresh? Is opening the workbook and having the robot click the button my best alternative at this point?

Hi Joe,

I had a similar issue both on local and Orchestrator when sending hotkeys to refresh (this bot is a few years old and I wasn’t aware of any specific activity at the time). I can’t say for certain, but I think that the CPU simply can’t handle both the refresh and UiPath constantly checking to see when the process has refreshed. My Excels would crash/bot would fail every time.

I got round this by putting a delay snippet in after the refresh of a minute. I think this essentially pauses the bot which allows Excel to refresh “in peace” and is therefore able to complete easily.

This is also hardly ideal, but it’s worked without fail since, even if it adds unnecessary time to each transaction.

Hope this helps, cheers

Thanks for the idea, Alex. I put a 1-minute Delay after the Refresh Excel Data Connections activity, but that did not work. I upped it to 2 minutes, still nothing. I will keep this idea in mind if I encounter a situation similar to yours in the future, though. Thanks.

I tried to separate this step from the rest of the steps in Excel. I used a Use App/Browser activity, and set it up for the robot to click the “Refresh All” button to refresh the data connections. However, when the robot opens the file in Excel, none of the buttons in the ribbon are present to click!

Any idea why this would be the case?

I think I may have found the issue. Would the Refresh Excel Data Connections activity not work because of this below?

Screenshot 2022-09-19 103951

Correct. I just completed a very similar automation, and I had to have it click the Enable Content button. FYI using Check App State to look for the refreshing message at the bottom left of the Excel window to disappear, worked well.

1 Like

Thanks for the confirmation. I added the various Click activities that I needed to, but now Excel fails to respond after the Refresh… I just get “Not Responding,” and eventually have to restart Excel. Of course, nothing has been saved at that point, so the Refresh effectively did not occur. Fun stuff. :upside_down_face:

All right, everyone. Figured this out.

I ended up having to open up the Connections (under the Data tab) and individually Refresh the first 2 connections on the list. Then, I closed the Connections, clicked “Refresh All,” and no stalling. I could save the file, and the rest of the process ran as expected. Not sure why that was the case, but super happy to have it resolved.

Thanks again to @Alex_Cross and @postwick for your help.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.