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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
user131313
Frequent Visitor

Formula.Firewall Error - Using Invoked Custom Function Step

Hey, I've been trying to troubleshoot an error message I'm getting for a long while and have tried all solutions for similar issues I have found on this forum but am still stuck so I'm hoping someone might be able to help me!

 

I'm combining an excel file from sharepoint with a custom function being used to pull data from a website. The excel file has the URL strings to pass into the function to cycle over the various pages of data to download. This did previously work, however when I've come back to the pbix more recently I am persistently getting the error Formula.Firewall: Query (step Invoked Custom Function) is accessing data sources that have privacy levels which cannot be used together.

 

I have tried: 

Changing Privacy Settings of Data Sources: I cannot seem to access any option to change the privacy levels of the link to the website as it does not come up as a source under Data Source Settings (perhaps because it's only being accessed through the custom function?). I've tried changing the Excel data source privacy settings to different levels but that doesn't seem to make any difference no matter what I set the Excel file to. Any tips on how to see the website as a relevant data source in the pbix would be very welcome though I'm not sure just working that out will resolve my issue.

 

Separating the query out into a function to bring in the Excel Data Source: I followed the steps in this post: https://community.powerbi.com/t5/Desktop/Formula-Firewall-Error-in-combination-with-PowerQuery-funct... however I just got a different Formula.Firewall error, this time about not directly accessing data sources in the query instead.

 

I don't want to remove the firewall entirely from the pbix either. Any ideas for alternative solutions would be very very much appreciated!

 

Thank you! 🙂

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can add a dormant static connection to your web data source so that you can set the sensitivity settings for it.

 

I know you don't want to do that by is the problem going away when you set the pivacy level to ignore for all connections?

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

You can add a dormant static connection to your web data source so that you can set the sensitivity settings for it.

 

I know you don't want to do that by is the problem going away when you set the pivacy level to ignore for all connections?

I've spent a bit longer on this and adding in the dormant static connection fixed the issue! It didn't work initially as I set everything to be private to be consistent, I changed it all to organisational and it's working again. Thank you so much for your help! 😀

Hey, 

 

Thank you for your response! So if I set the privacy level to ignore for all connections it works fine. I also have now set up a static connection to the web data source and set it at the same privacy level, however it doesn't seem to get rid of the error!

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors