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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

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 Employee
Microsoft 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
Microsoft Employee
Microsoft 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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.