+ Reply to Thread
Results 1 to 11 of 11

"SOLVED" [expression.error] the column 'Symbol' was not found

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Clitheroe
    MS-Off Ver
    2016
    Posts
    29

    "SOLVED" [expression.error] the column 'Symbol' was not found

    After years of using a worksheet which sends a Query to get data from a Google sheet, today it no longer works.

    The error is shown above, however the 'Symbol' column is present in both the source and destination worksheets (spelt the same, no spaces).

    On accessing the Power Query Editor, I find this in the Advanced editor:

    Please Login or Register  to view this content.

    Note that the missing column header 'Symbol' appears in both the #"Changed Type" group and the #"Replaced Value" group
    Can anyone tell me the meaning of Replacer.ReplaceText,{"Symbol"}. It seems to be replacing the column heading 'Symbol' with nothing?
    If this is the problem, How can I get rid of that expression?
    Please Login or Register  to view this content.
    Last edited by steveal; 11-18-2020 at 12:20 PM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: [expression.error] the column 'Symbol' was not found

    I suspect there's something wrong with your link. Do you see the column headers when you select the Source step of your query in the query editor?
    Rory

  3. #3
    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,830

    Re: [expression.error] the column 'Symbol' was not found

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

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

    Re: [expression.error] the column 'Symbol' was not found

    Removed, See post above by Ali.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  5. #5
    Registered User
    Join Date
    11-07-2013
    Location
    Clitheroe
    MS-Off Ver
    2016
    Posts
    29

    Re: [expression.error] the column 'Symbol' was not found

    Apologies, I hope I've made the necessary changes above [not an area I'm familiar with].

  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,830

    Re: [expression.error] the column 'Symbol' was not found

    Thank you.

  7. #7
    Registered User
    Join Date
    11-07-2013
    Location
    Clitheroe
    MS-Off Ver
    2016
    Posts
    29

    Re: [expression.error] the column 'Symbol' was not found

    Quote Originally Posted by rorya View Post
    I suspect there's something wrong with your link. Do you see the column headers when you select the Source step of your query in the query editor?
    Initially, I did have the column headings there. Now, the columns are full of 'descriptions' like <!DOCTYPE html>. How can I fix the link?

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

    Re: [expression.error] the column 'Symbol' was not found

    Do you have the permission on the document? I'd wager that you are querying redirected HTML page.
    Try testing by using link directly in your browser. If it doesn't immediately start CSV download, that's your issue.

    Also, I'd recommend removing ", Columns=9" from your Csv.Document. While this will improve performance in certain cases, it will break your query when data structure (# of columns) changes in source.
    This argument is optional and isn't needed.

  9. #9
    Registered User
    Join Date
    11-07-2013
    Location
    Clitheroe
    MS-Off Ver
    2016
    Posts
    29

    Re: [expression.error] the column 'Symbol' was not found

    Quote Originally Posted by CK76 View Post
    Do you have the permission on the document? I'd wager that you are querying redirected HTML page.
    Try testing by using link directly in your browser. If it doesn't immediately start CSV download, that's your issue.

    Also, I'd recommend removing ", Columns=9" from your Csv.Document. While this will improve performance in certain cases, it will break your query when data structure (# of columns) changes in source.
    This argument is optional and isn't needed.

    If I click on Data/Show Queries in Excel and then hover over the query in the right pane, I can copy the Data Source URL and put that in a browser tab. The relevant Google sheet opens with correct up to date data. Is that what you meant?

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

    Re: [expression.error] the column 'Symbol' was not found

    No it should not open in browser, but it should start csv download.

  11. #11
    Registered User
    Join Date
    11-07-2013
    Location
    Clitheroe
    MS-Off Ver
    2016
    Posts
    29

    Re: [expression.error] the column 'Symbol' was not found

    OK. I've been and made a fresh link.
    - I (re)published the Google sheet to the web as a .csv file
    - I made a new query in Excel to import the .csv file
    It works!

    I'm sure this isn't the best way to get this data into Excel - but it was 3 or 4 years ago when I made this worksheet following guidance online.

    Thanks for all your help. The guide to the link problem was the crucial part.

+ 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. Replies: 4
    Last Post: 08-15-2020, 05:42 PM
  2. Get Data from Folder Function Error [Expression.Error]
    By Tybudd in forum Access Tables & Databases
    Replies: 0
    Last Post: 07-10-2020, 03:30 PM
  3. [SOLVED] Runtime Error '3075': Syntax error in the string in the query expression [SQL]
    By leegrj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-28-2020, 04:11 PM
  4. [SOLVED] Search returns column header or error if value not found
    By leovfx in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-30-2017, 04:25 PM
  5. [SOLVED] Compile error: Constant expression required error when merging two Codes
    By Kezwick in forum Outlook Programming / VBA / Macros
    Replies: 8
    Last Post: 06-26-2013, 09:32 AM
  6. [SOLVED] Compile Error: Expected Expression, Syntax Error
    By gjohn282 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2012, 11:28 PM
  7. VBA compilation error : expected expression error
    By raknahs in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2010, 12:57 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