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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Haidann
Helper I
Helper I

Error Configure Postgres database credentials in Power BI Service

I have connected Power BI Desktop with Postgres using Direct Query mode, But when I publish it to Power BI Service. I'm unable to set data source credentials for scheduled refresh. I'm getting below error:

 

"Failed to Update data source credentials. An error happened while reading from the provider. The remote certificate is invalid according to valdation procedure." The same credentials works fine when connect with Power BI Desktop. Please find the screenshot of the error attached below:
1.PNG

Error in ReportError in Report

Can you guys show me step by step how to fix this error?
Many thanks

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Haidann ,

 

As @lbendlin  said,please "The installed database provider 'Npgsql' targets an incompatible .NET Framework. Please install Npgsql version 4.0.10.0 or earlier" and make sure that you select NpgSQL GAC Installation.Then restart the pc.

 

Please take a look at these issues for reference.

https://community.powerbi.com/t5/Service/Gateway-error-connecting-to-PostgreSQL/td-p/963650https://stackoverflow.com/questions/34020719/installing-ngpsql-to-use-postgresql-in-powerbi

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @Haidann ,

 

As @lbendlin  said,please "The installed database provider 'Npgsql' targets an incompatible .NET Framework. Please install Npgsql version 4.0.10.0 or earlier" and make sure that you select NpgSQL GAC Installation.Then restart the pc.

 

Please take a look at these issues for reference.

https://community.powerbi.com/t5/Service/Gateway-error-connecting-to-PostgreSQL/td-p/963650https://stackoverflow.com/questions/34020719/installing-ngpsql-to-use-postgresql-in-powerbi

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Step 1: "Install Npgsql version 4.0.10.0 or earlier"  on your gateway cluster members.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors