cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
LukeWalker
Advocate IV
Advocate IV

DataSource.Error: SharePoint: Request failed: The underlying connection was closed: An unexpected...

Receiving the following error on connecting to SharePoint:

DataSource.Error: SharePoint: Request failed: The underlying connection was closed: An unexpected error occurred on a send.

This is from the following M code:

let
Source = SharePoint.Files("https://#########.sharepoint.com/sites/#########/")
in
Source

No issues with this query up until a few days ago when the Power BI service refresh began failing. Refresh fails in desktop as well. I've read up on existing support articles, checked I am using TLS 1.2 locally (would not affect the service regardless), and I am unable to find further ideas why this would suddently begin failing. Interestingly, the query does succeed ~10-20% of the time at random. 

I am able to connect to the SharePoint site via the SharePont.Contents function ~50% of the time, but needing to query multiple files from the site. I tried deleting and recreating the data source, no dice.

 

Version: 2.116.884.0 64-bit (April 2023)

5 REPLIES 5
LukeWalker
Advocate IV
Advocate IV

Turned out my issue was just the VPN connection I was on. Once I resolved that, the source started working fine.

This was exactly the reason for me as well. Strange that this is the case, but it did fix it when I logged on to my VPN. Typically in the past just a connection to Sharepoint hasn't required a VPN. 

I had the same issue and connecting to my VPN worked for me. Very odd as usually I don't need to connect to the VPN to connect to Sharepoint through PowerBI.

Phills88
New Member

I have exactly the same issue...

lbendlin
Super User
Super User

Usually this means your sharepoint is overloaded.  Are you getting a lot of 429s too?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors