[Expression.Error] The column '<column title>' of the table wasn't found. When the column is there.

LeeBecker

New Member
Joined
Sep 22, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,

I often get the error [Expression.Error] The column '<column title>' of the table wasn't found.

I know that this means that the query can't find a particular column, but I often get the error even when the column does exist. I'm confident that it is not an error in my query because when I refresh the query a minute later without changing anything, it runs fine.

I don't mind TOOOO much from my point of view because I know that it will work when I refresh it, but the problem is, I have created queries for other people, and every time they get the error, they ask me why it is happening, or they think my query doesn't work. Also, sometimes they have changed the data, so the error really is valid.

Is this a bug is Power Query? Could it be a connection problem? Is this a known problem? Does anyone else get this problem? Does anyone have any suggestions for how to fix it?

Thank you!!!

Here is my code:

Power Query:
let

    Source = Excel.Workbook(Web.Contents("https://**********/LiveWebinar registrant_list.xlsx"), null, true),
    #"Expanded Data" = Table.ExpandTableColumn(Source, "Data", {"Column1", "Column2", "Column3", "Column4", "Column5", "Column6"}, {"Data.Column1", "Data.Column2", "Data.Column3", "Data.Column4", "Data.Column5", "Data.Column6"}),
    #"Lowercased Text" = Table.TransformColumns(#"Expanded Data",{{"Data.Column3", Text.Lower, type text}}),
    #"Removed Duplicates" = Table.Distinct(#"Lowercased Text", {"Data.Column3"}),
    #"Removed Top Rows" = Table.Skip(#"Removed Duplicates",1),
    #"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
    #"Renamed Columns" = Table.RenameColumns(#"Promoted Headers",{{" First name", "First name"}, {" Surname", "Surname"}, {" email address", "Email address"}, {" Are you:", "Are you:"}}),
    #"Removed Other Columns" = Table.SelectColumns(#"Renamed Columns",{"First name", "Surname", "Email address", "Are you:"}),
    #"Trimmed Text" = Table.TransformColumns(Table.TransformColumnTypes(#"Removed Other Columns", {{"Are you:", Text.Trim, type text}, {"Email address", Text.Trim, type text}, {"Surname", Text.Trim, type text}, {"First name", Text.Trim, type text}})
in
    #"Trimmed Text"
 

Attachments

  • Power Query Error Screenshot 2021-09-22 094248.png
    Power Query Error Screenshot 2021-09-22 094248.png
    10.1 KB · Views: 23
Last edited by a moderator:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top