cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
eramirez
Frequent Visitor

Problem with Web.Page not found in Custom Data Connector

Hi,

 

I'm trying to follow some examples that I found about parsing the content of a web page into a custom connector, but it is giving me an error : "The name 'Web.Page' doesn't exist in the current context".

 

webPage.PNG

 

This is my code:

 

// This file contains your Data Connector logic
section TestList;

[DataSource.Kind="TestList", Publish="TestList.Publish"]
shared TestList.Contents = () =>
  let

    executeReport = () => 
    let
        urlReport = "localhost:8080/jsontest/",
        sourceReport = Web.Page(Web.Contents(urlReport,[ Headers =[ #"Accept" = "application/html"]]))
    in
        sourceReport
    in executeReport;

I'm using Visual Studio 2015, and the last version of the Power Query SDK (1.0.0.13),

 

Any idea of why I'm getting this error?

 

Regards

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft
Microsoft

For any one who may have the same issue, this is confirmed as a known limitation. See this issue on Github.

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft
Microsoft

For any one who may have the same issue, this is confirmed as a known limitation. See this issue on Github.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors