Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
This is going to be a rather lengthy question and a lengthy topic because, quite frankly, the problem seems to be so convoluted at many different levels all involving SharePoint Connection and Integration with PowerBI. I spent the entire workday yesterday looking through about every SharePoint thread on this forum and none of them seemed to directly address my issues, nor did the threads/solutions ever offer clear and concise fixes. I am going to to try to be as explicit as possible in outlining my goals, the issues, and the attempted fixes I have tried. Please excuse if anything seems redundant.
The goal:
Connect PowerBI Desktop file with both files located in an organizational SharePoint and lists located in an organizational SharePoint.
Pretty straightforward.
The issues:
Issue #1: SharePoint UI connection (I'll explain why I put UI later) only works for List connection and ONLY with the SharePoint URL starting with http:// as opposed to https:// . I am getting the dreaded "Access to the Resource is Forbidden" error. See following Pictures Below:
Why is this an issue? The issue is that when I try to refresh/schedule refresh this particular dataset in PowerBI Service I get a wrong credentials error. Everything I have read so far says that one of the ways to fix this is to change the URL from HTTP to HTTPS. Unfortunately, I am unable to do this because of the above error and therefore the dataset is unable to refresh in the PowerBI Service.
Issue #2: SharePoint Folder Connection does not work at all
As I've stated above, I have no issue connecting to SharePoint online list but ONLY when I use HTTP. However, when I try to connect to a SharePoint Folder using either HTTPS or HTTP I get the following errors:
For http://site.sharepoint.com:
For https://site.sharepoint.com:
Workaround For Issue #2:
Surprisingly, the following workaround appears to work for Issue #2, though it is extremely cumbersome.
Create a Custom Blank Query and use PowerQuery Code to navigate to the sharepoint folder/file directly. Again - glad this works - but not sure this is what uses should resort to as PowerBI is supposed to offer seamless SharePoint Connectors:
let
Source = SharePoint.Contents("http://sitename.sharepoint.com", [ApiVersion = 15]),
#"Shared Documents" = Source{[Name="Shared Documents"]}[Content],
#"Folder Name" = #"Shared Documents"{[Name="Folder Name"]}[Content],
DBA = #"FolderName"{[Name="DBA"]}[Content],
#"PowerBI Files" = DBA{[Name="PowerBI Files"]}[Content],
#"File Name csv" = #"PowerBI Files"{[Name="FileName.csv"]}[Content]
Here, I am using the SharePoint.Contents method of PowerQuery to navigate to the organizational SharePoint site. I guess I am confused on how this works - but none of the other ways to navigate to sharepoint are working. It appears that the SharePoint Folder method is not working because it is using the Web.Contents method of PowerQuery as it's underlying call instead of the SharePoint.Contents method. Am I right in that assumption? Again, this call in PowerQuery only works with HTTP and not HTTPS.
Issue #3: SharePoint credentials showing up as invalid in Service Refresh.
Here is what options I have for credentials in the PowerBI Service:
I suppose my questions come down to the following:
This has not been as straightforward as it should be, with tons of different errors - and I am just trying to figure out why and can't seem to get a straight answer from any previous threads. Apologies for the slight Service overlap here in Desktop Forum but the reality is most of my issues are stemming from Desktop.
Michael
First question, what version of SharePoint? Is it on-premises or 365?
@Greg_Deckler We are using 365 SharePoint. We have MFA turned on for all accounts through AAD.
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/18527482-mfa-authentication
So, I have come across this support issue before - but I'm a little confused as to how it is effecting my question. Is that the reason why I can't connect using HTTPS? Is that the reason why I can't connect to SharePoint files using the Get Data methods and only through PowerQuery coding? Is this the reason why it won't update through SharePoint into the PowerBI Service?
Admittedly, I am not an expert in this so I'm struggling to connect the dots.
I would say that all of those are a pretty safe bet. You could confirm 100% by turning off MFA for the account being used or using a different account without MFA but there a a number of threads in the forums where people had their SharePoint resources working just fine and then started using MFA and it broke everything. Here is one such thread:
After double checking: I do not have 2FA/MFA turned on for my account.
Michael
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.