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
ozhug
Advocate II
Advocate II

Datflow Sharepoint folder filter Internal Server Error 500

When i use a dataflow pointed at a sharepoint site it gets a list of all the files which is working
next step I try and use a filter to narrow down the list to just excel files and get an error 
any ideas how to fix this.
 
DataSource.Error: SharePoint: Request failed: The remote server returned an error: (500) Internal Server Error. (An error occurred while processing this request.)
 
My code is below.


section Section1;
shared Query = let
Source = SharePoint.Files("https://<mywork>.sharepoint.com/sites/FunSite"),
#"Filtered rows" = Table.SelectRows(Source, each ([Extension] = ".xlsx"))
in
#"Filtered rows";

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @ozhug 

 

To connect to sharepoint folder in Power BI, please get root url of your SharePoint site and enter the URL in SharePoint Folder connector, see https://powerbi.tips/2016/09/loading-excel-files-from-sharepoint/.

 

Here's another similar threads could be your reference:

https://community.powerbi.com/t5/Power-Query/SharePoint-Request-failed-The-remote-server-returned-an... 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @v-diye-msft 
connect to sharepoint was ok
when i apply the filter it has a 500 error,
#"Filtered rows" = Table.SelectRows(Source, each ([Extension] = ".xlsx"))
my guess would be that the engine is trying to push this filter to the source and failing.

Hi @ozhug 

 

The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.

It looks like the error may be related to how the server is handling the request.

 

Kindly filter the rows on the desktop and check whether it works.

 

Here's a blog could be your reference:

https://vladtalkstech.com/2015/03/sharepoint-2013-ssrs-remote-server-returned-error-500-internal-ser... 

 

If you still have this issue, you'd better create a support ticket in Power BI Support , Scroll down and click "CREATE SUPPORT TICKET", or go to Issue forum  to get further help.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @v-diye-msft 

This blog post asked me to check eventview is that possible with sharepoint online ?

Here's a blog could be your reference: https://vladtalkstech.com/2015/03/sharepoint-2013-ssrs-remote-server-returned-error-500-internal-ser....

thanks

Mark

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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