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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
masplin
Impactful Individual
Impactful Individual

Struggling to connect to a Sharepoint folder

I have been using the local version of the folder, but need to change it to the Sharepoint version for online refreshing.

 

i have a few files that are distint files and that worked fine getting the url and changing from File.Contents to Web.Contents

 

For example this works fine pointing at a single file

 

= Excel.Workbook(Web.Contents("https://cxxxxxxxxltd.sharepoint.com/sites/PowerBIReporting/Shared%20Documents/Trinity%20Data/PowerBI%20Employee%20Export.xlsx"), null, true)

 

I tried to create a new query clicking on new query then Sharepoint folder.  If my source is right at the top of the site I can see a list of files BUT right at the bottom is an error

 

= SharePoint.Files("https://cxxxxxxxltd.sharepoint.com/sites/PowerBIReporting")

 

DataSource.Error: SharePoint: Request failed: The remote server returned an error: (500) Internal Server Error. (An error occurred while processing this request.)
Details:
DataSourceKind=SharePoint
DataSourcePath=https://cxxxxxxltd.sharepoint.com/sites/PowerBIReporting/_vti_bin/ListData.svc/SolutionGallery
SPRequestGuid=9ffaf09f-xxxxxxxxx
Url=https://cxxxxxxxxltd.sharepoint.com/sites/PowerBIReporting/_vti_bin/ListData.svc/SolutionGallery

 

This stops me doing anything further with the query as cannot even remove the error rows so any idea what this is and how to fix it?

 

Ideally shoudln't I be giving it a path further down the tree or do you have to view every file and then filter on the relevant folder afterwards? The rest of the path to actual folder i want is Shared%20Documents/Trinity%20Data/Transaction%20Data%20V3, but that just errors as above.

 

Really appreicate any advice 

Mike

1 ACCEPTED SOLUTION
masplin
Impactful Individual
Impactful Individual

Found the solution to this. You have to add the ApiVerion

 

....sharepoint.com/sites/PowerBIReporting/",[ApiVersion=15]),

View solution in original post

1 REPLY 1
masplin
Impactful Individual
Impactful Individual

Found the solution to this. You have to add the ApiVerion

 

....sharepoint.com/sites/PowerBIReporting/",[ApiVersion=15]),

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.