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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Problems connecting to sharepoint folder

Hi,

 

I'm currently having problems connecting to a sharepoint site using the Sharepoint.Contents command and ApiVersion 14.

PowerBI doesn't return any folders or files to connect to, although there are folders in the site and files in these folders.

The query window is simply empty.

Helloimmartin_0-1654682870752.png

 

Can anyone help me with this?

 

Best regards,

Martin

 

6 REPLIES 6
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

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

MattAllington
Community Champion
Community Champion

I doubt it. If the credentials are wrong, you probably would get an error. But do you have access to the doc library with your credentials?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

Yes, when I access via a browser, I can see and access the necessary folders and files

It's hard to say given you have blacked out the URL in the image. You could try clearing the credentials in Power Query. If they are right and the URL is right, I can't see any reason why it won't work. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
MattAllington
Community Champion
Community Champion

You need to connect to the root site first. Something like

mydomain.SharePoint.com/sites/mysite/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

Hi Matt,

 

I already connected to the root-site in the code, but it only returns an empty table.

 

Could the problem perhaps be due to missing credentials in sharepoint?

 

Br,

Martin

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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