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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
legonzales
Frequent Visitor

Passing Parameters from an Excel table to MS SQL query

I am using Excel 365.

I have a Power Query (PQ) that reads off a MS SQL database. I need to set parameters for that query from a table in the same Excel workbook.

I created the parameters in PQ, when I feed them manually the query works but when I link those parameters to the Excel table get the following error message

Formula.Firewall: Query 'SQL_Query' (step 'Source') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.

I changed the security settings, but it did not work.

I've seen several posts that work in instances where both data sources come directly only from Excel.

 

 

Parameters.PNG

 

Thank you in advance

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @legonzales ,

 

Here’s one of the point provided in the Microsoft documentation:

When combining or merging data between multiple data sources, you might get a Formula.Firewall error such as the one shown in your case.

 

This error can be caused by a number of reasons, such as the data privacy levels between data sources or the way that these data sources are being combined or merged. For more information about how to diagnose this issue, go to Data privacy firewall.

 

 

Below is a solution provided in a similar thread, hope it would help you.

Eyelyn9_1-1649727498478.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @legonzales ,

 

Here’s one of the point provided in the Microsoft documentation:

When combining or merging data between multiple data sources, you might get a Formula.Firewall error such as the one shown in your case.

 

This error can be caused by a number of reasons, such as the data privacy levels between data sources or the way that these data sources are being combined or merged. For more information about how to diagnose this issue, go to Data privacy firewall.

 

 

Below is a solution provided in a similar thread, hope it would help you.

Eyelyn9_1-1649727498478.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vijay_A_Verma
Super User
Super User

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.