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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Issue getting data from SharePoint

Hi guys, I'm trying to get data from my company Sharepoint, but I'm getting this error:

 

Crestous_0-1594205906947.jpeg

I can't find anything related, does someone has or had a problem similar? how can I solve this? thank you!!

3 REPLIES 3
Anonymous
Not applicable

Hi,

 

Are you behind some firewall? 

 

From what is see in error : 

1. Connection was rejected:

If your sharepoint site is using internal VPN, or you pasted wrong URL.

For me this error occurs when my connection point is not whitelisted (for example when my Company VPN is off), or when i took entire URL instead of server + site part.

 

2. API Version.

If you look into Power Query code you may notice that connector is ending with API version 15. For me this version is causing many issues, so i usually change it to 14. 

 

3. Choosing right connector.

Depending on company, there are actually 2 types of Sharepoint Sites.

Sharepoint Online List - When Sharepoint resides in MS Cloud

Sharepoint List - When Sharepoint resides on-premise (common with 2007 version)

 

 

 

v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

I wonder if you are using the latest version of Power BI Desktop and which sharepoint connector you are using. I test with 'sharepoint folder' and it works properly.

 

You may copy the link like below in sharepoint connector in Power BI Desktop.

a1.png

 

Then you may click 'Transform'=>'Binary'=>'Table' to get the corresponding data.

a2.png

 

a3.png

 

a4.png

 

Best Regards

Allan

 

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

NSRjecross
Frequent Visitor

There was another thread that suggested changing the apiversion back to 14 from 15

https://community.powerbi.com/t5/Power-Query/RESOLVED-SharePoint-gateway-issue-OData-Version-3-and-4... 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.