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

Sharepoint api version differences

Hi,

Pls help the differences with/without api version fetching data to query since I keep getting error: 

OLE DB or ODBC error: [DataSource.Error] An error happened while reading data from the provider: 'A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)'.

 

 

let
Source = SharePoint.Contents("https://xxx.sharepoint.com/sites/xxxx", [ApiVersion = 15])

vs

Source = SharePoint.Contents("https://xxx.sharepoint.com/sites/xxxx", [ApiVersion = 14])

vs

Source = SharePoint.Contents("https://xxx.sharepoint.com/sites/xxxx")

 

 

jeongkim_0-1751219276688.png

 

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi @Anonymous The ApiVersion=15 is for SharePoint 2013 or later (modern SharePoint Online), while ApiVersion=14 is for SharePoint 2010. If you don’t specify an ApiVersion, Power BI auto-selects one, which might cause compatibility errors. To resolve the issue, explicitly use ApiVersion=15 for SharePoint Online. Ensure there are no network disruptions or configuration mismatches in your connection.

View solution in original post

2 REPLIES 2
Akash_Varuna
Super User
Super User

Hi @Anonymous The ApiVersion=15 is for SharePoint 2013 or later (modern SharePoint Online), while ApiVersion=14 is for SharePoint 2010. If you don’t specify an ApiVersion, Power BI auto-selects one, which might cause compatibility errors. To resolve the issue, explicitly use ApiVersion=15 for SharePoint Online. Ensure there are no network disruptions or configuration mismatches in your connection.

Anonymous
Not applicable

Hi, 

My query automatically detected api version 15.

I created the sharepoint site in 2024 but can I still use version 14 just changing the number in the code? 

Then will be better or even lighter? 

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.