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
sbatool
Helper I
Helper I

https web datasource error

Hi team,

I have been unsuccessful in connecting to a https website from the Power BI desktop when connecting through Web source. I am getting the following error:

sbatool_0-1595232411538.png

I have tried the following m code to get the URL from a parameter (because we want the year to be different in the URL):
let
URL = __lpt_TimeDateURL & __lpt_TimeDateYear & __lpt_FileType,
Source = Web.BrowserContents(URL)
in
Source

I get the following message to edit credentials, for which I use Anonymous.

sbatool_2-1595232835044.png

 

Then I get the following error again:

sbatool_3-1595232892804.png

I have cleard data load cache, increased the limit of cache, cleared the permissions for this source in Data source settings and saved Anonymous again. I have added this URL in the Trusted sites in my Internet Explorer too but all with no avail.
Please let me know if I am missing something.

6 REPLIES 6
sturlaws
Resident Rockstar
Resident Rockstar

Hi @sbatool 

 

I am not able to recreate your issue. This code works fine when I test it:

sturlaws_0-1595234445415.png

 

What might be missing in your m code is the selection of which table you want to extract from the web page.

 

Thanks @sturlaws for trying, unfortunately extracting the table didn't work. I'm getting the same error.

sbatool_0-1595238596909.png

 

Hi @sbatool ,

 

Did you set the type for your parameter _year in your case to text?

 

Capture.PNG

 

Would you please show us the m query for it?

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Hi @v-deddai1-msft, yes I used text as the Type for year. It seems it's my work network that's blocking the https because I had no issues using the same method in my personal laptop.

amitchandak
Super User
Super User

@sbatool , refer if this can help

http://blog.datainspirations.com/2018/02/17/dynamic-web-contents-and-power-bi-refresh-errors/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak for sharing the link. The link refers to the refresh issues whereas in my case I am unable to connect to any https at all in power bi desktop from my work laptop. I can connect to this link with no issues from my personal laptop. I am unsure if I am missing any security settings.

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

Top Solution Authors