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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
michaelshparber
Advocate V
Advocate V

Gateway error connecting to PostgreSQL

I get this error when setting up a new datasource to PostgreSQL in my Gateway in the Service:

 

"Unable to connect: We encountered an error while trying to connect to . Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance.
Status code: 400
Error Code: DMTS_PublishDatasourceToClusterErrorCode
p-gateway: Unable to connect to the data source undefined.
Underlying error message: Please install Npgsql version 4.0.10.0 or earlier."

 

I did install Npgsql 4.0.10.0, restarted everything but it doesn't work. 

Please help

1 ACCEPTED SOLUTION

OK

I've solved the problem installing Npgsql 4.0.10 WITH GAC(!!!)

When installing, make sure that you select NpgSQL GAC Installation.

This GAC did the trick.

Then reboot the machine.

Good luck!

View solution in original post

12 REPLIES 12
Brunoviana007
New Member

Hi.

1° Install NGPSQL:
https://github.com/npgsql/npgsql/releases/tag/v4.0.10

 

2° Reboot On-premises data gateway.

 

Its solved for mi.

Greg_Deckler
Community Champion
Community Champion

Hmm, these ones are tough to troubleshoot. You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

OK

I've solved the problem installing Npgsql 4.0.10 WITH GAC(!!!)

When installing, make sure that you select NpgSQL GAC Installation.

This GAC did the trick.

Then reboot the machine.

Good luck!

Hi @michaelshparber I instalded the Npgsql 4.0.10 with NpgSQL GAC installation,and reboot the machine ,but it still doesn't work when connetting getway and postgreSQL. Please let me know if you have any solutions, that's will be appreciate with your help!

Viki_Wu_0-1661246374995.png

 

No need to reboot the machine, only Power BI Gateway

tgleb_0-1660257193464.png

 

How do you install Npgsql 4.0.10 WITH GAC?

Anonymous
Not applicable

Hi,

 

Could you please explain more on how exactly is to install Npgsql 4.0.10 with GAC?

 

I've tried to install using stack builder, I could find the npgsql part but I couldn't found the GAC part.

 

really appreaciate your help!

 

regards,

@Anonymous 

During the installation you should get this screen:

Just check the GAC installation, too.

 

Capture.JPG

 

Hello,

do you have a link to provide for this installer ?
Struggling finding one .... 
Thanks

Very late, sorry ... But thanks a lot for the link 😄 Worked perfectly .

FYI here is link to the Windows installation file (MSI):

https://github.com/npgsql/npgsql/releases/tag/v4.0.10

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors