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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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