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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
IgorAtRydlab
Regular Visitor

a problem connecting wiht postgresql database

When creating a connection to a PostgreSQL DB always receive the following:

 

"Подробности: "При чтении данных от поставщика произошла ошибка: 'Не удалось загрузить файл или сборку "System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" либо одну из их зависимостей. Не удается найти указанный файл.'"

 

which means that it cannot find "System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

 

it happens after inserting data on connection, when all connection data is provided and it tries to get data from DB, as I see it.

 

What should I do to fix this?

 

Скриншот 2018-06-04 12.13.13.png

 

1 ACCEPTED SOLUTION

it is IgorAtRydlab ...

 

moved forward from that problem by removing latest npgsql 4.* version and installing previous 3.*.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @IgorAtRydlab,

 

I think this issue more related to your environment and libraries, please check below links or try to use scan command to fix environment.

 

Sfc Command (System File Checker)

Microsoft .NET Framework Repair Tool

 

Regards,
Xiaoxin Sheng

Same issue, but on a fresh installation, everything looks good except for connecting to postgres on powerbi

I have this same issue.

 

Clean install of Windows 10 Pro, Power Bi Desktop (May 18), Npgsql 4.0.0.

 

I'm attempting to connect to Panoply.io (Postgres).

 

Ran the .NET repair tool and SFC, no apparent issues.

it is IgorAtRydlab ...

 

moved forward from that problem by removing latest npgsql 4.* version and installing previous 3.*.

Thanks,

 

Also downgraded to Npgsql (3.2.7) and connected successfully.

 

Ian

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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