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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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