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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
kpeterson
Frequent Visitor

New File Source Not Recognized

I recently added a new file to a SharePoint folder and am having issues connecting to it.  I'd like to just update my query to point to the new file but it is saying that it can't find the file.  However, I can start a new query and find the file that I need.  

 

Query

= SharePoint.Files("https://xxx.sharepoint.com/sites/PowerBI", [ApiVersion = 15])

= Source{[Name="FY23 AM Data.xlsx",#"Folder Path"="https://xxx.sharepoint.com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/"]}[Content]

= Excel.Workbook(#"FY23 AM Data xlsx_https://xxx sharepoint com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/")

 

The last is giving me the error Expression.Error: The name 'FY24 AM Data xlsx_https://xxx sharepoint com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/' wasn't recognized. Make sure it's spelled correctly.

 

But again, I can connect to it using a new query just fine.  I've even tried copying and pasting the last step in the new query to the query I'm trying to update.  TIA!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kpeterson , For such a case, I add the source again and take the code from the new query and replace it in the existing source.

 

I have done this across source, but do the same for similar types of connection

Change Connection from One source type to another Source Type: https://youtu.be/nwYJgG2hmd0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@kpeterson , For such a case, I add the source again and take the code from the new query and replace it in the existing source.

 

I have done this across source, but do the same for similar types of connection

Change Connection from One source type to another Source Type: https://youtu.be/nwYJgG2hmd0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

That worked. Thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.