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
Anonymous
Not applicable

Power Query unable to load xlsx files from sharepoint folders when filename oder folder contains #

Hello Community,

 

I wanted to pull data from Excel sheets from a specific Sharepoint folder. Trying to do this I discovered the following behaviour: If a path- or filename in Sharepoint includes a # sign at any position, Power Query will return the following error message to me:

 

DataFormat.Error: The input URL is invalid. Please provide a URL to the file path on SharePoint up to the file name only (with no query or fragment part).

To double check my assumption I loaded all files from our Sharepoint site, filtered for Extension ".xlsx" and a value in Content that evaluates to an error. For all of these Elements the formula

Text.Contains([Name], "#") or Text.Contains([Folder Path], "#")

did evaluate as TRUE.

 

This does not happen if the file/folder does not include a #. Since the folder in question cannot easily be renamed I'd like to know if anyone knows a workaround for this behaviour without renaming folders.

1 ACCEPTED SOLUTION
timg
Solution Sage
Solution Sage

Hi Felix,

Unfortunately it looks like this is a limitation: https://learn.microsoft.com/en-us/power-query/connectors/sharepointfolder#filename-special-character... 

Best regards,

 

Tim





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
timg
Solution Sage
Solution Sage

Hi Felix,

Unfortunately it looks like this is a limitation: https://learn.microsoft.com/en-us/power-query/connectors/sharepointfolder#filename-special-character... 

Best regards,

 

Tim





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.