+ Reply to Thread
Results 1 to 2 of 2

Run time Error While Fetching Data Through Web Query

  1. #1
    Registered User
    Join Date
    07-03-2016
    Location
    INDIA
    MS-Off Ver
    2013
    Posts
    38

    Run time Error While Fetching Data Through Web Query

    Hi,

    I am using attached file for fetching data from 21 URLs through VBA code. Sometime it run successfully and generates the results and sometimes it randomly throws errors like, (1)We connected to the website, but didn’t receive any data from it. Error Code: INET_E_DATA_NOT_AVAILABLE (2) The connection to the website was reset. Error Code: INET_E_DOWNLOAD_FAILURE. This typically happens only with 4 URLs highlighted in yellow in attached file. When I open this pages in internet explorer 11, then also it randomly throws such error in only this 4 URLs. I have googled this issue and tried every possible solution, but still no success.

    Can someone help me with some correction in VBA code such that when an error is reported, then the same URL is reattempted for at least 5 times and still error, then end macro or try next URL.

    Some VBA code like, On Error.... Retry...

    Thanks in Advance....
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Exclamation Re: Run time Error While Fetching Data Through Web Query

    Hi !

    Unfortunately this is a duplicate post and as such will now be closed, you may continue in your other thread.

    Thread Closed.

+ 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. using VBA - Need to check the Number of rows before fetching the Query Results
    By Kandavalli.Kiran in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2017, 08:54 PM
  2. Replies: 2
    Last Post: 01-12-2017, 09:51 PM
  3. set time interval for fetching values
    By varshneybhasker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 12:10 AM
  4. Error with recordset from SQL query. Run-time error '3704'
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2010, 03:44 AM
  5. error generation in value fetching from others worksheet
    By ravinder_tigh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2009, 06:21 AM
  6. writing excel VBA Query for fetching data from Access
    By vikas.bhandari in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2007, 05:47 AM
  7. [SOLVED] Error on fetching object in OLEObject
    By syrhus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2005, 12:06 PM

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