+ Reply to Thread
Results 1 to 7 of 7

Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.)

  1. #1
    Registered User
    Join Date
    06-03-2020
    Location
    Montana
    MS-Off Ver
    2016, 2019, O365
    Posts
    3

    Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.)

    We have a user that pulls 10 day forecast results from weather(DOT)com for multiple locations and every query has simultaneously stopped working around May 27, 2020. I have sample code referenced below. I can't post screenshots since I'm apparently not allowed to yet. Since nothing has changed on our end I am suspicious that IBM might have changed something on the website.


    Note that this code used to work on Office 2016 and Office 2019. I tried Power BI Desktop and can pull the table there but the code it uses is incompatible with Excel.
    Please Login or Register  to view this content.
    Last edited by mste; 06-03-2020 at 02:39 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.

    Please read the yellow banner at the top of this page on how to attach a file.

    I am not versed in Power BI, but I believe that the language of Power BI is DAX and that Power Query uses Mcode. I don't believe that they are compatible.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.

    FYI - Power BI uses M code for query. DAX is generally used to aggregate or otherwise analyse/transform data once loaded to data model by the query.
    In Excel DAX is used in PowerPivot/PowerView.

    Power BI is basically PowerQuery and PowerView (on steroids) rolled into one. With additional controls and features.

    And yes. It looks like site probably changed something. It's using API to get json data and using it to fill the page with info (i.e. you can't scrape data using your url. As the info ins't filled until page is loaded).

    Oddly enough, their 10 Day weather isn't 10 days. But 14 days + 1 (today).

    Don't have time to go into transformation steps. But you can get the data by using something like below.

    Please Login or Register  to view this content.
    EDIT: For clarity and grammar.
    Last edited by CK76; 06-03-2020 at 04:01 PM.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.

    @CK76

    Please Login or Register  to view this content.
    Thanks for that clarification. Since I have never worked with Power BI, this makes it very clear.

  5. #5
    Registered User
    Join Date
    06-03-2020
    Location
    Montana
    MS-Off Ver
    2016, 2019, O365
    Posts
    3

    Re: Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.

    Interesting, I will try playing around with that and see if I can replicate what the user is used to getting. I'm not an Excel expert so M code is new to me. Thanks for the suggestion and I will post back if I need more help.

  6. #6
    Registered User
    Join Date
    06-03-2020
    Location
    Montana
    MS-Off Ver
    2016, 2019, O365
    Posts
    3

    Re: Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.

    I have been scratching my head about how to get the different variables to be combined as rows in a single table and have not managed to do it yet. Most of the resources I've found mention pulling in tables from other queries and files. I know the code is a mess. I can try to clean it up after I figure out how to get the formatting right.

    Please Login or Register  to view this content.
    Last edited by mste; 06-03-2020 at 07:02 PM.

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Excel 2019 Query Randomly Stopped Working (The column 'Day' of the table wasn't found.

    You may find List.Generate useful (though I don't think it's necessary here, you can use List.Accumulate as well), since all lists in the JSON should have same number of rows (i.e. 15 day's data).

    You can use Text.Combine to concatenate each list using delimiter. Convert the resulting list to table. Then split by delimiter.

    https://docs.microsoft.com/en-us/pow.../list-generate
    https://docs.microsoft.com/en-us/pow...ist-accumulate

+ 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. Excel 2013 stopped working while running MDX query
    By Mahesh.ms in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2016, 07:14 AM
  2. the item with the specified name wasn't found
    By Ayoub99k in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2015, 04:36 AM
  3. [SOLVED] Code randomly stopped working in versions other than Excel 2013
    By mlmusic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2014, 11:45 PM
  4. Errors: Microsoft Excel has stopped working - crash in pivot table
    By EvaLina in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-12-2014, 09:58 AM
  5. Web query has stopped working...
    By andrewm27 in forum Excel General
    Replies: 0
    Last Post: 04-20-2006, 12:28 AM
  6. [SOLVED] Remote data query stopped working
    By Mark Scholes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 05:06 AM
  7. [SOLVED] query wizard has stopped working how do i rectify this
    By Marie LND in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-18-2005, 10:06 AM

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