Forum Discussion
Expression.Error the collumn from the table was not found
RubenDB Connected to the same table as in your 2nd screenshot, with the same script (in English though).All works well and refreshing works without problems. I can, thus, not replicate your problem.
But try this. Remove the "Type gewijzigd" step, so the PQ isn't looking for "Column1" to begin with. Do you really need to the step there? When I connect to the source both columns are already text, without the need for a data typing step.
Riny_van_Eekelen Thank you for your answer.
I don't understand what I have to do. This is the first time that I'm working with querry's. Understand code is the script. What do I have to change on this script?
let
Bron = Web.Page(Web.Contents("https://coinmarketcap.com/currencies/cardano/")),
Data0 = Bron{0}[Data],
#"Type gewijzigd" = Table.TransformColumnTypes(Data0,{{"Column1", type text}, {"Column2", type text}})
in
#"Type gewijzigd"
Only Column 2 have I need for working with.
Thanks
- SergeiBaklanMar 20, 2021Diamond Contributor
Web site is not static, some script reload web page and update the information. In particular sequence of tables could be another. Thus as a minimum I'd suggest to take not a first table in the list, but filter it by name.
let Bron = Web.Page(Web.Contents("https://coinmarketcap.com/currencies/cardano/")), #"Filtered Rows" = Table.SelectRows(Bron, each ([Caption] = "Cardano Price Today")), Data = #"Filtered Rows"{0}[Data] in Data
- RubenDBMar 20, 2021Copper Contributor
SergeiBaklan Thanks Sergei
I have tried this modification, but now I get another error named:
"expression.error there weren't enough elements in the enumeration to complete the operation"
Maybe it is needed to know that I have multiple databases from a dynamic web page. You can see on the picture all my querry's.
Thank you for your patiently.
- Riny_van_EekelenMar 20, 2021Platinum Contributor
RubenDB In de lijst met toegepaste stappen: verwijder de stap "Type gewijzigd".
Het script komt er dan zo uit te zien:
let Bron = Web.Page(Web.Contents("https://coinmarketcap.com/currencies/cardano/")), Data0 = Bron{0}[Data] in Data0
- RubenDBMar 20, 2021Copper Contributor
Riny_van_Eekelen Bedankt voor je antwoord.
Ik heb dit geprobeerd maar dan wordt niet de hele tabel geladen (zie foto).
- Riny_van_EekelenMar 20, 2021Platinum Contributor
RubenDB Both ways should work, but SergeiBaklan 's is more robust, I would say. See attached file.