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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
CubedFluidity
Frequent Visitor

Firewall Error

In Excel, I save the path to Sharepoint and I retrieve it using Excel.CurrentWorkbook(). 

 

I put all my excel a variables into the xl_Val Record. 

 

 

 

 

let

    SharepointBaseURL = Text.From(xl_Val[SharepointBaseURL]),
    SP_GetFile = SharePoint.Files(SharepointBaseURL, [ApiVersion = 15])

in

    SP_GetFile

 

I get the following error. 

PQ_FW Error.png

 

 

 

 

 

 

All my sources are set to organizational. The Sharepoint is not shown in Local Data Sources, but it is in by global sources. I tried to buffer the variable, but no luck. 

PQ_Sources.png

 

The query dependencies do not show the Sharepoint QueryPQ _ SP NOt Shown.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If I use Paramaters for the Sharepoint URL, the dependencies look different. 

PQ _ SP Working.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Is there any way to get the URL from Excel and use it to get the sharepoint files? @pqian 

2 REPLIES 2
CubedFluidity
Frequent Visitor

Thanks Jimmy, 

 

I am going to keep firewall setting and will use a parameter as input. 

 

Erik

Jimmy801
Community Champion
Community Champion

Hello @CubedFluidity 

 

you have to include this query "xl_Val[SharepointBaseURL]" also into your main query.. meaning not referencing it only.

Another solution should be to disactivate the firewall in your options

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.