Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
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!
Solved! Go to Solution.
@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
@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
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 22 | |
| 21 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 68 | |
| 55 | |
| 43 | |
| 42 | |
| 30 |