This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi everyone,
I want to create an overview of all views and stored procedures in PowerBI with the query below. This works fine in Power BI desktop, but when you refresh the data in Power BI service, the definition field becomes empty. It's confusing to have different behaviour between desktop and service. Any idea on how to resolve this issue?
Possible root-cause: The "definition" field is very large (within 1 record it will have multiple rows and many characters). But in most things I read it should just be truncated.
SELECT definition
FROM sys.sql_modules
Many thanks in advance!
Solved! Go to Solution.
I think @GilbertQ is on to something regarding permissions.
To see definitions in sys.sql_modules a user needs to be granted VIEW DEFINITION in sql server. In your case you'd want to do that at schema level at least for the account running the gateway.
Hi @jorn
Can you ensure that you have clicked on the reset to default button on your report page?
If that still does not work, what happens if you have to upload the PBIX to a new app workspace without refreshing can you see all the information?
If you can then make sure that your gateway account connecting to your database has the right permissions to view the sys.modules?
Hi GilbertQ,
Thanks for your reply!
1. Reset to defaults: It was even greyed out, so nothing to reset
2. Upload without refresh: The data is shown.
2a. Gateway access to sys.modules: All other fields/colums are refreshed except that specific ("definition") field/column so it doesn't seem access related? I will try with my own user in the data gateway to see if that solves the problem.
I think @GilbertQ is on to something regarding permissions.
To see definitions in sys.sql_modules a user needs to be granted VIEW DEFINITION in sql server. In your case you'd want to do that at schema level at least for the account running the gateway.
That's it indeed!
In my case I went to the properties of the SQL Server user >> Securables >> Permission >> "View any definition".
Thanks bcdobbs and GilbertQ!
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 7 |
| User | Count |
|---|---|
| 28 | |
| 25 | |
| 22 | |
| 21 | |
| 21 |