Power Query Formula.Firewall error

cr731

Well-known Member
Joined
Sep 17, 2010
Messages
611
I'm having issues with the "Formula.Firewall" error in Power Query ("Formula.Firewall: Query 'Source_Query' (step 'Promoted Headers') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.") and simply cannot find the answer.

I have the following,

- A named range called Parameter_Source
- A query with the following code called SourceFile

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Parameters!Parameter_Source"]}[Content]{0}[Column1]
in
    Source

I then am creating a second query with the following:

Code:
let
    Source = Excel.Workbook(File.Contents(SourceFile)),
    page_Sheet = Source{[Item="page",Kind="Sheet"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(page_Sheet)
in
    #"Promoted Headers"

This results in the firewall error.

What is the cause of this?
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi
I have a similar problem in Excel 2016. I do not khow why it is happend. But if merge those queries in one it will work
Code:
let
    SourceFile =Excel.CurrentWorkbook(){[Name="Parameters!Parameter_Source"]}[Content]{0}[Column1],
    Source = Excel.Workbook(File.Contents(SourceFile)),
    page_Sheet = Source{[Item="page",Kind="Sheet"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(page_Sheet)
in
    #"Promoted Headers"
Regards,
 
Upvote 0
I also don't know why that is, but you can also solve it by enabling fast combine. Then the error-message will disappear.
 
Upvote 0
Hi
I have a similar problem in Excel 2016. I do not khow why it is happend. But if merge those queries in one it will work
Code:
let
    SourceFile =Excel.CurrentWorkbook(){[Name="Parameters!Parameter_Source"]}[Content]{0}[Column1],
    Source = Excel.Workbook(File.Contents(SourceFile)),
    page_Sheet = Source{[Item="page",Kind="Sheet"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(page_Sheet)
in
    #"Promoted Headers"
Regards,

Thanks - this worked. But it still makes no sense to me why it works this way.
 
Upvote 0
I was wondering if anyone can offer an explanation as far as what the various privacy levels actually do? What is the technical difference between them?

And, if everyone using my query has access to all of the data sources, is there any risk by just using fast combine and disabling the privacy settings altogether?
 
Upvote 0

Forum statistics

Threads
1,224,155
Messages
6,176,736
Members
452,741
Latest member
Muhammad Nasir Mahmood

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top