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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

API and Error Messsage: Formula.Firewall: Query

Hi all,

 

I am using calling an API and I have queries 1-4. 

I appended queries 2-4 to my first query number 1.

My first query is throwing out the following error code in the advanced editor: 

 

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

I have seen another post about this but the following link posted for it looks at Excel so I couldn't quite follow it and was wondering if anyone may be able to help at all? https://www.excelguru.ca/blog/2015/03/11/power-query-errors-please-rebuild-this-data-combination/ 

 

My code is as follows:


Source = Json.Document(
Web.Contents(
"https://",
[
Content = content,
Headers=[
#"X-Api-Key"="XXX",
#"Content-Type"="application/json"
]
]
)),
result1 = Source{[Item="result1"]}[Data],
#"Converted to Table" = Table.FromList(result1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id", "country", "segment"},{"id", "country", "segment"}),

#"Appended Query" = Table.Combine({#"Filtered Rows", Table_Retail}),
#"Appended Query1" = Table.Combine({#"Appended Query", #"Table (2)"}),
#"Appended Query2" = Table.Combine({#"Appended Query1", #"Table_Retail (2)"}),

#"Replaced Value1" = Table.ReplaceValue(#"Replaced Value","weeksalesvalue","Week Sales",Replacer.ReplaceText,{"ROS_Aggregate_Type"}),
#"Replaced Value2" = Table.ReplaceValue(#"Replaced Value1","matsalesvalue","Year Sales",Replacer.ReplaceText,{"ROS_Aggregate_Type"}),
#"Replaced Value3" = Table.ReplaceValue(#"Replaced Value2","week4salesvalue","4 Week Sales",Replacer.ReplaceText,{"ROS_Aggregate_Type"}),
#"Replaced Value4" = Table.ReplaceValue(#"Replaced Value3","quartersalesvalue","Quarter Sales",Replacer.ReplaceText,{"ROS_Aggregate_Type"})
in
#"Replaced Value4"

 

From what I understand, it is the error in the last line that references the line before it? And it needs to reference the external code? Does anyone know what that should be?

 

Apparently going to the following fixes the issue: Options --> CURRENT FILE --> Privacy then setting the Privacy Level to "ignore the privacy levels and potentailly improve performance" but I don't know what ignoring these privicy levels may impact other than this, any ideas? 

 

Thanks in advance!

 

Lauren.

 

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Is your issue solved?Does my suggestion work ?

Best Regards,
Kelly

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

 

 

v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Check the blog below which may help:

https://www.poweredsolutions.co/2019/03/12/data-privacy-and-the-formula-firewall/

 

Best Regards,
Kelly

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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