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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
webportal
Impactful Individual
Impactful Individual

Can't import file in OneDrive for Business folder

This is my data source in Power Query:

 

= SharePoint.Contents("https://xxx-my.sharepoint.com/personal/zzzz/Documents/Power/")

 

I want to get all the files in a folder in OneDrive for business.

 

However, this is returning:

 

DataSource.Error: SharePoint: Falha do pedido: O servidor remoto devolveu um erro: (400) Pedido incorrecto. (Bad Request)
Detalhes:
DataSourceKind=SharePoint
DataSourcePath=https://xxx.sharepoint.com/personal/zzz/Documents/Power
SPRequestGuid=804aa99f-f0a7-2000-7b4e-309f35dbdc66
Url=https://xxx-my.sharepoint.com/personal/zzz/Documents/Power/_vti_bin/ListData.svc

 

The URL is valid and I have logged in to the respective Microsoft account.

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @webportal ,

 

Glad to hear that you have worked it out. Could you please kindly accept @lbendlin reply as the solution.

 

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

webportal
Impactful Individual
Impactful Individual

@lbendlin 

Thanks for the tip.

The query is now working again 🙂

lbendlin
Super User
Super User

Are you sure you want to give other users access to your personal sharepoint?  You may want to consider using a team sharepoint instead.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors