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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
v-jingzhang
Community Support
Community Support

Hi @kpeterson 

 

#"FY23 AM Data xlsx_https://xxx sharepoint com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/" is the result returned by a step called "FY23 AM Data xlsx_https://xxx sharepoint com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/". In your query, it should be the second step's name. Make sure the step name is also modified to be consistent with the query referenced in its following step Excel.Workbook(#"previous step name").  

 

vjingzhang_0-1683598064757.png

 

I recommend that you don't include file name and folder path in step names, then you just need to modify the values after = next time. For example,

 

let
    Source = SharePoint.Files("https://xxx.sharepoint.com/sites/PowerBI", [ApiVersion = 15]),
    File = Source{[Name="FY23 AM Data.xlsx",#"Folder Path"="https://xxx.sharepoint.com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/"]}[Content],
    Result = Excel.Workbook(File)
in
    Result

 

When you create a new query to connect to the new file, step names are generated automatically to be consistent with the corresponding file and folder path, so it doesn't have this problem. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @kpeterson 

 

#"FY23 AM Data xlsx_https://xxx sharepoint com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/" is the result returned by a step called "FY23 AM Data xlsx_https://xxx sharepoint com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/". In your query, it should be the second step's name. Make sure the step name is also modified to be consistent with the query referenced in its following step Excel.Workbook(#"previous step name").  

 

vjingzhang_0-1683598064757.png

 

I recommend that you don't include file name and folder path in step names, then you just need to modify the values after = next time. For example,

 

let
    Source = SharePoint.Files("https://xxx.sharepoint.com/sites/PowerBI", [ApiVersion = 15]),
    File = Source{[Name="FY23 AM Data.xlsx",#"Folder Path"="https://xxx.sharepoint.com/sites/PowerBI/Shared Documents/Power BI Files/CIP Files/"]}[Content],
    Result = Excel.Workbook(File)
in
    Result

 

When you create a new query to connect to the new file, step names are generated automatically to be consistent with the corresponding file and folder path, so it doesn't have this problem. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors