Forum Discussion

Pave1's avatar
Pave1
New Member
2 years ago
Solved

Azure PostgreSQL db is not available for Power BI Service

The issue is observed since the outage on Monday 04.09.2023 in UKSouth Azure region

We cannot configure power bi service to connect to our Azure PostgreSQL flexible server.

We allow power bi to connect to the db:

 

When I try to setup the dataset connection in power bi service, I get the following error:

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=5.0.0.0, Culture=neutral, or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

There are the same datasets, configured before Monday, they work without any issues. The issue happens only when we publish and configure the same dataset again, or any other dataset.

 

I tried to configure virtual network gateway as a work around, but it works only for premium. What I don't want to do - is to configure an on premise gateway in the Azure, if possible to avoid.

 

Any ideas?

8 Replies

  • Hello. I am having the same problem.
    To be more precise:
    * My report's Postgres connection works perfectly fine on Power BI Desktop
    * When I try to connect from Power BI Web (i.e, when publishing said perfectly working report), the following error shows up:

     

    'Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

     

    My guess is that the runtime used by the Power BI Service is either missing NpgSQL or is using an older version of it. For this reason, I bet you wouldn't have the same problem if Postgres was deployed on-premise via a gateway, with the proper drivers installed. This is not a real solution, though, as I shouldn't have to deploy a whole new Windows server in order to use a Postgres DB I already have deployed and accesible in the cloud.

    This is a breaking change for every user using Postgres on the cloud (in my case, it is deployed on Linode), I hope they fix this soon.

     

    I will fill attempt to fill a ticket as well.

     

    Cheers

    • Pave1's avatar
      Pave1
      New Member

      Hi fapomatius,

       

      I have an easier work around - the refresh works when I run it manually, no problem.
      Microsoft support engineer informed me yesterday that the product group team is currently investigating the issue.

       

      Best regards,

      Pavel

    • Pave1's avatar
      Pave1
      New Member

      Hi Whiplashneo,

       

      No, but I have a ticket opened with Microsoft Power Platform Support. Had a call with a Microsoft engineer yesterday. He wanted to make sure that I can connect to the db from desktop and cannot do the same from the service with the same user. No update so far...

       

      Best regards,

      Pavel

      • lbendlin's avatar
        lbendlin
        Super User

        This is a known issue. Borrow the files from the Desktop install.

  • The issue is finally solved by Microsoft, just tested successfully.