Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I am using SQL user defined function in the SQL query as a import mode. File is getting refreshed fine on PBI desktop however on PBI server it is failing stating SQL user defined function "The EXECUTE permission was denied on the object".
Same gateway is able refresh file wrt to tables in SQL used however with SQL user defined function it is failing.
Does gateway refresh dont support SQL user defined function or any permission issue might be there?
Thanks in advance for providing the inputs
@lbendlin
I tried using the underlying query without UDF and it seems to work on serevr . However with UDF included it seems to break and not getting refresh.
Does gateway powerbi refresh support SQL UDF ?
underlying query without UDF is executing good on the server .
However when UDF is included in the query it fails
Check that the "owner" of the gateway connection (ie the credentials) has the necessary permissions on your SQL server. Try running the underlying query instead of the UDF.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 8 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 38 | |
| 30 | |
| 26 | |
| 22 | |
| 19 |