[Expression Error] The column "column1" of the table wasn't found

Donkey Kong

New Member
Joined
Aug 26, 2020
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
HI, this is my first post. How exciting. Hope someone can assist.

I've created a Power Query table (Excel 10) to extract stock data from the one website. The web site has (or should have) 4 Tables that contains the data I require. The only difference being the stock code I am searching. The data is displayed in 4 separate columns. All works fine until it gets to lookup a row that doesn't have the appropriate Table on the site (the stock doesn't exist). The script stops with "[Expression Error] The column "column1' of the the table wasn't found". I would like the query to continue with the rest of the table and just represent this as '0', or skip it altogether, rather than just stopping with error.
What's confusing is that if I modify the query to only lookup data from 1 Table it works. (If the stock doesn't exist, it simply skips it and moves on to the next stock in my list). It is only when I add more columns is when this error occurs and the query stops completely and doesn't complete the full list. I've attached an image of the Power Query error and one of the the script. (There is more stocks to search beyond the error).

I hope this makes sense. Waiting in anticipation. Thanks heaps. D.
 

Attachments

  • PQ.jpg
    PQ.jpg
    78 KB · Views: 261
  • POE.jpg
    POE.jpg
    91.4 KB · Views: 254

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
try error trap like
try sometihing otherwise 0 or something2
 
Last edited:
Upvote 0
Hey, I also facing the same problem, While importing stock data from a website, the query suddenly stops refreshing and shows "the column 'column1' of the table wasn't found" error. Pls help me.
 

Attachments

  • Screenshot (1866).png
    Screenshot (1866).png
    195.3 KB · Views: 139
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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