+ Reply to Thread
Results 1 to 11 of 11

Get data from Web slow on first refresh only

  1. #1
    Registered User
    Join Date
    07-16-2021
    Location
    Centurion, South Africa
    MS-Off Ver
    2019
    Posts
    9

    Post Get data from Web slow on first refresh only

    Hi guru's,

    I have a simple workbook with a Get Data -> From Web query to fetch exchange rates from XE.com. Whenever I open the workbook and refresh the data the first refresh is very slow, around 2 minutes. Any subsequent refreshes finish within 3 seconds. Any ideas of the cause and how to resolve? I suspect it has something to do with the initial opening of a connection to the web page?

    Looking forward to you comments.

    Regards,
    Johann

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Get data from Web slow on first refresh only

    Welcome to the forum.

    My response is: possibly. That's it. If you'd like one of us to test your theory, please attach a sample workbook that displays the issue. Instructions in the first yellow banner at the top of the page.

    EDIT: I have a very, very good friend in Centurion. French, but living in Irene with her South African husband
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-16-2021
    Location
    Centurion, South Africa
    MS-Off Ver
    2019
    Posts
    9

    Re: Get data from Web slow on first refresh only

    Hi Ali,

    Irene is about 6km from us ... small world

    I have attached my file. Hopefully it shows the same behaviour on your side. You will have to enable macros and disable privacy settings for the query to work.

    Johann
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Get data from Web slow on first refresh only

    OK - I'm cautious about enabling macros. I thought we were dealing with a PowerQuery set-up here. Can you provide a sample workbook that contains just the query?

  5. #5
    Registered User
    Join Date
    07-16-2021
    Location
    Centurion, South Africa
    MS-Off Ver
    2019
    Posts
    9

    Re: Get data from Web slow on first refresh only

    Try this one, it's just the query without passing the data as a parameter.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Get data from Web slow on first refresh only

    It took about a minute for the connection window to come up, and it is now trying to connect - been about a minute so far. Still not there!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Get data from Web slow on first refresh only

    Now connected, so in all about 2.5 minutes.

    Refresh under three seconds.

  8. #8
    Registered User
    Join Date
    07-16-2021
    Location
    Centurion, South Africa
    MS-Off Ver
    2019
    Posts
    9

    Re: Get data from Web slow on first refresh only

    So it behaves the same for you? Initial refresh is slow, any refreshes thereafter is quick! Any ideas?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Get data from Web slow on first refresh only

    Yep and nope, in that order!

    Accessing the site directly is very fast.

  10. #10
    Registered User
    Join Date
    07-16-2021
    Location
    Centurion, South Africa
    MS-Off Ver
    2019
    Posts
    9

    Re: Get data from Web slow on first refresh only

    I'm stumped. It's almost like establishes a handshake between Excel and the site on first refresh, then it refreshes quickly as long as the handshake is intact (maybe time dependent or until the file is re-opened). Thanks for checking!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Get data from Web slow on first refresh only

    It looks like it. You could contact the site owners and see if it's a known issue. It certainly isn't because of your parameter - we've ruled that out, I think.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Refresh Connection with many Pivots is slow
    By trgz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2019, 06:41 AM
  2. [SOLVED] PivotTable refresh is extremely slow
    By Platinum3x in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-12-2014, 01:04 PM
  3. Replies: 1
    Last Post: 12-04-2014, 04:13 PM
  4. Screen refresh very slow
    By JTC97401 in forum Excel General
    Replies: 5
    Last Post: 12-23-2013, 09:00 PM
  5. VBA code to send data to different sheets slow refresh
    By covershaker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2010, 03:09 AM
  6. Replies: 0
    Last Post: 09-28-2005, 09:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1