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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
zeromero
Advocate I
Advocate I

Issue with Power BI Online Connection to Azure PostgreSQL - Missing Assembly 'System.Runtime.Compile

I am experiencing an issue when trying to connect Power BI Online to my Azure PostgreSQL database. The error message I receive is:

Failed to update data source credentials: An error happened while reading data from the provider: 'Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.' Activity ID: ff4337ed-2f6e-4865-9c33-5c843b9568ae Request ID: a6dc0300-c46a-f794-1488-7d735cecfb51 Status code: 400 Time: Tue Sep 17 2024 01:28:57 GMT-0300 Service version: 13.0.24209.56 Client version: 2409.2.20860-train Cluster URI: 

The error seems to indicate that a required assembly or dependency is missing in the connection between Power BI Online and Azure PostgreSQL. As this is a cloud service, I do not have control over installing drivers or managing dependencies.

Could you please provide guidance on how to resolve this issue in the Power BI Online environment?

 

Thank you for your assistance.

1 ACCEPTED SOLUTION
Danito90
Frequent Visitor

Good afternoon everyone! Check your reports because the error is solved. At least in my case where I connect to a base that is located on a web server. 
Greetings!!

View solution in original post

61 REPLIES 61
lucasnbezerra
Regular Visitor

I'm also having the same problem, but I don't use Azure, but rather Oracle. The data is being updated normally, but when I try to check the status in 'Manage connections and gateways', the message below appears.

New projects published, I can't schedule updates or change existing ones. I noticed on 09/16 when this started happening.

-------------------------------------------------

Status
Offline - Unable to retrieve the status. Check your connection and try again. Contact Microsoft support if the problem persists.

Here are some details about the reason for the "offline" connection status. Contact Microsoft support and include the information below in your ticket

----------------------------------------------

Error Code: DataAccessError
Connection error: Data access error
Cluster URI: https://api.powerbi.com
Session ID: XXXXXXXXXXXXXXXXXXXXXXXXXXX
Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

undefined: An error happened while reading data from the provider: 'Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'

AndersonCruz
New Member

Aqui também estou enfrentando esse mesmo problema. Reparei ontem também.

Alguem ja descobriu alguma solução?

dasv
New Member

Same issue as above, occured a few days ago for a client. During the same time it worked for me as well (in another tenant) when trying to re-create the issue, the next day it stopped working for me, so I am thinking it could be region/cluster specific.

 

Status code: 400
Time: Wed Sep 18 2024 11:51:51 GMT+0200 (Central European Summer Time)
Service version: 13.0.24209.56
Client version: 2409.2.20860-train
Cluster URI: (wabi north europe cluster)

 

 

Best regards 

v-yetao1-msft
Community Support
Community Support

Hi @zeromero 

We have seen on the internal platform that other engineers have reported this issue and submitted it. 

The engineers on the product team are now aware and will do their best to resolve the issue. I will update here if there is any progress, so please be patient!

Possible mitigation measures given by PG: 

  1.  Reuse an existing shared Cloud connection to connect to PostgreSQL Create and share cloud data sources in the Power BI service - Power BI | Microsoft Learn
  2. Create a new connection in Dataflows and use this new connection while connecting to PostgreSQL
  3. Create a connection using a Data Gateway

 

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Community Support Team _ Ailsa Tao,

 

The existing PostgreSQL connections do not work (they appear offline) and Power BI Service does not allow to create new PostgreSQL cloud connections (see attached image).

 

Do you have an ETA to solve the issue?

Junyi_0-1726844156559.png

 

This is similar to what I'm encountering also. Trying to create a new shared connection fails  - 

Error Message: "Unable to create connection for the following reason: Unable to connect to the data source. Either the data source is inaccessible, a connection timeout occurred... etc. " 

Is there any update on the issue?

bgd
Regular Visitor

Hello,

We are having the same problem.

Best regards,

rish
Advocate I
Advocate I

We’ve encountered the same issue. It’s puzzling because our current schedule completes successfully, and manual refreshes of the online Power BI reports work fine.

However, this problem prevents us from changing any schedule times or days.

I completely agree with @zeromero. This is the main reason we’re using Azure PostgreSQL—to avoid extra setup.

We sincerely hope this gets resolved soon.

Same behavior here. Datasets that were previously configured and working until yesterday are still functioning fine, but any changes or the addition of a new dataset trigger the error.

We are having the same issue while patching our datasets and reached out to the support team. After a long debug session and submitting all the diagnostic logs we finally heard back today that the Power BI product team is working on a fix.

 

DSpotBI_0-1727221737236.png

 

We are experiencing same issue.

 

Any update on this?

Hi,

 

We are also experiencing this problem. I am receiving the exact same error message:

Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'

Is there any update or workaround to resolve this?


Same behaviour suddenly today. What is the ETA to resolve this??

Any update on this?

we have same issue since this morning.
annaboryla
Frequent Visitor

We are experiencing same issue, until yesterday it worked perfectly... 

v-yetao1-msft
Community Support
Community Support

Hi @zeromero 

Please try and check the below things 

1) Install latest gateway (if not already installed)

2) Install PostgreSQL driver

3) Create a data source for PostgreSQL in gateway

4) Map data source to Dataset in the dataset settings page
In short, you have to install latest  version of NpgSQL and when installing, select the NpgSQL GAC option. The article I linked has a more detailed step-by-step guide.
https://powerbipoint.com/2024/01/22/fix-power-bi-refresh-error-could-not-load-file-or-assembly-or-on...

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Ailsa Tao,

As I mentioned in my previous message, I am using the Azure PostgreSQL database precisely to avoid the need for an on-premises data gateway. When using the gateway, everything works as expected, but the advantage of Azure is to eliminate the need for this extra setup.

This same issue occurred a few years ago, and at the time, Microsoft identified the problem, provided a 15-day resolution window, and suggested using the gateway temporarily while they worked on a fix.

I have several clients connected to my database, and installing the gateway for each of them is not a viable solution.

The purpose of my message is to find out if others are experiencing the same problem and if Microsoft or the Power BI team is already aware of it. I’ve tried everything I can on my side. I’ve created a new database, tested with another tenant, and the issue persists.

Any insights from the team would be greatly appreciated.

Best regards,
Jose Romero

We use Azure PostgreSQL for us and our customers for this exact reason as well.  We had Microsoft run maintenance today which took long enough for 4 refreshes to fail and now can't get automatic refresh back on for a mission critical dashboard.  

 

Responses like use the gateway show a total lack of understanding of the problem.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.