Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
After updating the last version of Power BI, I can not update data using the data source PostgreSQL. It gives me the following error:
DataSource.Error: An error happened while reading data from the provider: 'Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, 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)'.
If I reinstall previous versions, I won't have this problem. How can I solve this issue?
Solved! Go to Solution.
Hi @-arantunes- ,
Please refer to :
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...
More details: Solved: Error connecting Postgres to PowerBI desktop - Microsoft Fabric Community
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @-arantunes- ,
Please refer to :
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...
More details: Solved: Error connecting Postgres to PowerBI desktop - Microsoft Fabric Community
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
82 | |
53 | |
40 | |
35 |