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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
Employee
Employee

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
Employee
Employee

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_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.