Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Solved! Go to Solution.
it is IgorAtRydlab ...
moved forward from that problem by removing latest npgsql 4.* version and installing previous 3.*.
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 40 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 171 | |
| 104 | |
| 90 | |
| 44 | |
| 44 |