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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
BedoToledo
Regular Visitor

Formula.Firewall: Query 'q' (step 's') references other queries or steps, so it may not...

Hello.

I am getting following error:

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

 

The error arises randomly every few minutes, in queries which reference other queries. For example: I am reading a single date from a file, to create a cutoff date for other queries. The date is a separate query, and has only one value as output. Then in another query, I read a file, and then remove all values which are earlier/later than the date. At this point I randomly get this error. This is not consistent, and I can get it in the same query which has worked a few seconds before. If I relaunch power BI and refresh all previews, it dissapears for a few minutes.

 

I would appreciate any help - it is extremely hard to work when I have to wait for PBI to relaunch half of the time. Thank you in advance.

3 REPLIES 3
BedoToledo
Regular Visitor

What do you mean here by "refactor your queries"?

 

Both files in question are in the same folder, with same access. The only failure point is that I take the other file via function. Do you suggest using duplicate code instead of a function?

Either that or bring the function inline to the query.

lbendlin
Super User
Super User

first test if the problem goes away when you set privacy levels to none.  Then set them back to organizational and refactor your queries so that the ones causing the error message are in the same partition.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors