Forum Discussion
Issues regarding power bi report server
- 2 years ago
Apologies for this change not being mentioned....I forgot to add this to the changelog and release notes (and will be fixing that today).
The May release has a expected change on the AS side of things which will require customer actions to keep some existing scenarios working. As part of a push for security customers will have to explictly include “Encrypt=True;TrustServerCertificate=True” as part of the connection string or apply the “PBI_SQL_TRUSTED_SERVERS” environment variable to their server to Power BI Report Server machine.
- 2 years ago
Good afternoon,
To make this workaround to be effective it has to be:
setx PBI_SQL_TRUSTED_SERVERS [DDBB Server Name]
It is not enough to introduce the variable, but also include the server name.
Now it works fine!!!
Apologies for this change not being mentioned....I forgot to add this to the changelog and release notes (and will be fixing that today).
The May release has a expected change on the AS side of things which will require customer actions to keep some existing scenarios working. As part of a push for security customers will have to explictly include “Encrypt=True;TrustServerCertificate=True” as part of the connection string or apply the “PBI_SQL_TRUSTED_SERVERS” environment variable to their server to Power BI Report Server machine.
“As part of a push for security customers will have to explictly include "Encrypt=True;TrustServerCertificate=True" " I've never been able to find the modification, please tell me.
- Petebro2 years agoMicrosoft Employee
This is done on the connection string inside Power BI Destkop application then republishing it to the Report Server.
Power Query SQL Server connector - Power Query | Microsoft Learn
- fabienChery2 years agoFrequent Visitor
Hello,
I have just upgraded to the May 2024 server version and effectively all my Direct Query reports on the portal no longer work and receive the same message as you do.
So to solve the problem I followed your recommendations.
PS: I use several SQL Server where I have DB which are datasources of the reports published on the RS portal.
So I configured on the Power BI Server the env variable PBI_SQL_TRUSTED_SERVERS
Connect on server power bi with the system user declared on power bi Serve
Simply set PBI_SQL_TRUSTED_SERVERS = Server1,Server2,Server
Restart power bi and Oh magic all direct query reports work again
I expect this will help you, I've been working on this problem for 1 day.
Fabien
- stanley_19132 years agoNew Member
I want to say a big thank you to you. After struggling for two days to solve the problem, I finally solved it with your post.
- TinyToons2 years agoAdvocate I
Hi Petebro
For me, with Power BI Desktop RS May 2024, and according to the Power Query documentation of the "Sql.Database" function, it is not possible to add the "Encrypt" and the "TrustServerCertificate" options to the connection string.
Could you help me to find tell me how I can do it?
Thanx in advance for your time and your help.
Have an amazing day!
- bouchardcote2 years agoNew Member
I can't find how to achieve this. How can we add "TrustServerCertificate=True;Encrypt=True;" to a Power BI Desktop report in direct query mode? Is it possible to post detailed step by step instructions with screen captures or something ?
The official documentation is saying this is possible, but not how to do it:
Thanks !