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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
PetyrBaelish
Resolver III
Resolver III

Can't connect / refresh using external SharePoint site

I'm trying to connect to a SharePoint site (not my own company's - a company has provided a username/password for me to connect).

 

In Power BI Desktop I connect via the SharePoint folder method, but when I try to connect using a Microsoft account, it won't let me; I['m presented with the following error message:

authentication header.PNG

Selecting Sign In does nothing (the window flickers for a split second, but goes nowhere)

 

I then tried Windows authentication - this works in Power BI Desktop (privacy level set to Organizational) and I can refresh in Power BI Desktop.

 

When I go to Power Bi Service -> select Scheduled Refresh next to the dataset ->  under Data Source Credentials (which is showing the warning: Your data source can't be refreshed because the credentials are invalid. Please update your credentials and try again) when I select Edit credentials the only authentication method that is showing is "Anonymous" - which fails to connect.

 

I'm not sure how to proceed... Power BI Desktop confines me to a "Windows" connection, then Power BI Service doesn't like it.

4 REPLIES 4
Anonymous
Not applicable

Hi@PetyrBaelish

 

Please check if the filename contains certain special characters, it may lead to authentication errors due to the filename being truncated in the URL. If you are getting unusual authentication errors, make sure that all of the filenames you're using don't contain any of the following special characters.

# % $

If these characters are present in the filename, the file owner must rename the file so that it does NOT contain any of these characters.

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

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

 

Hi @CaitlynV ,

 

The filenames don't contain any strange characters. In Power Bi Desktop we can successfully connect to the SharePoint folder - see all the files that are visible, filter it to the relevant files (all spreadsheets), expand their contents and trasnform the relevant columns. It is only when we publish this to Power BI Service that it becomes a problem.

 

In Power Bi Desktop, the first couple of steps in query editor are:


= SharePoint.Files("https://portal.xxxx.com/sites/xxxx/", [ApiVersion = 15])
= Table.SelectRows(Source, each [Date created] > #datetime(2021, 1, 1, 0, 0, 0))



lbendlin
Super User
Super User

The credential type doesn't really have to match between desktop, service and gateway.  Speaking of which - is that sharepoint a Sharepoint Online (something.sharepoint.com) or on-premise (sharepoint.company.com) ?

The address is https://portal.xxxx/sites/xxxx

 

I'm not 100% sure if this is SharePoint Online or on-premises. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors