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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors