Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Formula.firewall

I'm getting this error: "Formula.Firewall: ...(not important).. references other queries or steps, so it may not directly access a data source"

I've read about others having the same issue but I can't wrap my head around how to solve the issue in my case. My query looks like this with only one step:

let

   Source = Table.AddColumn(Query1, "Custom", each Json.Document(Web.Contents("https://path-to-api/",       [RelativePath=Text.Combine({Number.ToText([pages.id]), "/tickets"}), Headers=[Authorization=Bearer tokenid"]])))
in
   Source



My guess is that the error occurs because i reference the api endpoint and "pages.id" in the same query? But I can't figure out how to do instead since I'm using "each" and looping through the table. Any ideas?

  • Anonymous's avatar
    Anonymous
    4 years ago

    I'm referencing another query that's also doing an API call, when I moved that call into this query as well the issue was solved.

3 Replies