Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Query contains unsupported function. Function name: Web.Contents

Hello everyone

 

I'm trying to adapt my url to make the query based on this topic and this other link, but that doesn't make the update work.

 

How can I do the url partitioning in the correct way?

 

 

token_ = #"Column1 Expandido"{0}[Token],

//Url
url = "https://services3.arcgis.com/xxxxxxxyyyyzzzz/arcgis/rest/services/service_abr54aahsh789sdsg/FeatureServer/15/query?where=1%3D1&outFields=*&returnGeometry=false&f=json&token=" & token_,
    
Source_fs = Json.Document(Web.Contents(url)),
       
//Query
features = Source_fs[features],
#"Converted to Table" = Table.FromList(features, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @Jimmy801 


That was the mistake. "Query contains function not supported. Function name: Web.Contents",

Partitioning would be to split the query into parts so that this error would disappear. 
See this article; https://docs.microsoft.com/pt-br/powerquery-m/web-contents

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hello @Jimmy801 

The problem was that the data was updated on the PBI desktop, but not on the PBI Service, it was an error on the Web.Contents.

I managed to solve it like this

 Source_fs = Json.Document(Web.Contents("https://services3.arcgis.com/xxxxxxxyyyyzzzz/arcgis/rest/services/service_abr54aahsh789sdsg/FeatureS..." & token_)),

Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

what error you get?

From your code you take the first row of a specific column to append it to the web-address and then read it. There is nothing wrong about it. What you mean by partioning? Your address is hardcoded and extended by an text what should give you a valid address I suppose. So nothing wrong in the tecnique.


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Anonymous
Not applicable

Hello @Jimmy801 


That was the mistake. "Query contains function not supported. Function name: Web.Contents",

Partitioning would be to split the query into parts so that this error would disappear. 
See this article; https://docs.microsoft.com/pt-br/powerquery-m/web-contents

Hello @Anonymous 

 

so you were able to fix it?

 

BR

 

Jimmy

Anonymous
Not applicable

Yes

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.