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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ozmike
Resolver I
Resolver I

Formula Firewall ..?

 

Hi have a query an get this error ..

 

 

 

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

let
xx =   KEYListfunction(),
sel = "select * from ""XXX.xx::XXX""  where ""column"" IN  ("  & xx & ")  ",
Source = SapHana.Database("XXX:12345", [Query=sel])
in
Source

 

How to rebuild?

 

Basically KEYListfunction(), returns a comma separated list

 

'123', '345'

to generate a

 

select * from xxx where col in ( '123', '345' )

 

This works ..when the query doesn't ref the list function..

let
xx =   KEYListfunction(),
sel2 = "select  * from ""XXXX""  where ""col"" IN  ('123') ",
Source = SapHana.Database("server", [Query=sel2])
in
Source
1 ACCEPTED SOLUTION
MarcelBeug
Community Champion
Community Champion

The cause of the error message is that you use data from another table (in your KEYListFunction) to access data in your Saphana database. Such a combination may violate privacy level settings.

 

Probably the only way to solve this issue is to adjust your privacy level settings:

go to File - Options and Settings - Options - Privacy (almost at the bottom) and check

"Ignore the Privacy Levels and potentially improve performance".

On that screen you can also find a link to more information on privacy levels, which brings you here.

 

Specializing in Power Query Formula Language (M)

View solution in original post

4 REPLIES 4
GilbertQ
Super User
Super User

Hi @ozmike

 

Possibly try this

 

let
xx =   KEYListfunction(),
sel = "select * from ""XXX.xx::XXX""  where ""column"" IN  ("  & #"xx" & ")  ",
Source = SapHana.Database("XXX:12345", [Query=sel])
in
Source

If the above works, when you define a parameter or as in your example the (xx) when then using it within the Query Editor it has to have the HASH DOUBLE QUOTE PARAMETER NAME DOUBLE QUOTE - #"PARAMETER" 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

MarcelBeug
Community Champion
Community Champion

The cause of the error message is that you use data from another table (in your KEYListFunction) to access data in your Saphana database. Such a combination may violate privacy level settings.

 

Probably the only way to solve this issue is to adjust your privacy level settings:

go to File - Options and Settings - Options - Privacy (almost at the bottom) and check

"Ignore the Privacy Levels and potentially improve performance".

On that screen you can also find a link to more information on privacy levels, which brings you here.

 

Specializing in Power Query Formula Language (M)

Thanks this works!

 

BTW i didn't need the hash my original solution code worked just with teh open policy settings.. 

 

i'll have to investigate why there are different policy setting on an XLs vs HANA table.

Hi @ozmike,

 

Glad it is now working and in theory it should work on an XLSX file also.

 

I do know of some issues with XLS files that I have encountered in the past (If that is what you meant with your explanation.)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors