Forum Discussion

Paulus05's avatar
Paulus05
Frequent Visitor
4 years ago
Solved

Power Query Excel.Workbook Function - using SharePoint file and path in parameters

Based on the standard parameters, for the data access function Excel.Workbook, I believe a set of queries I have inherited has been corrupted but it is not being picked up by Syntax check or loading background query.

The parameters within Excel.Workbook() seem to either be an advanced query to a file and path, or someone has pasted in rubbish to the query - any advice? The query appears exactly as shown below, deidentified names, including the whitespace where you would expect dots for the site url and file name...

 

```
#"Imported Excel Workbook" = Excel.Workbook(#"Example_File_Name xlsx_https://exampleorg sharepoint com/sites/ExamplePath/"),
Data_Sheet = #"Imported Excel Workbook"{[Item="Data",Kind="Sheet"]}[Data],

```

Somehow the query was still loading and returning rows...

I've successful rolled back the query now by changing the line to:
= Excel.Workbook(Example_File-Name, null, true),

 

Problem solving has led to answer, so apologies for the seemingly null and void question, but I just want to make sure I haven't missed anything about a means of using the function that I am missing.

3 Replies