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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I m new in gateway. I did not choose a personal gateway.
I m trying to connect to a DB which is host in cloud by elephantsql.
I can connect to this db with powerbi desktop with no issue.
bu I cannot connect via gateway. error is :
Unable to connect to undefined datasource
error Code -2147467259
Can someone help me to undestand what I can do.
first off cloud data sources do not require a gateway (assuming that the Azure Service can reach your data source)
what is your connection definition on the gateway?
Hi Ibedin,
Thanks for your answer.
How do I configure Azure to reach data source ?
thanks
you don't. If your dataset refreshes without needing a gateway then Azure service can reach your data source.
Issues can be that your data source is actually on-prem, or that the authentication you use is not understood by the Power BI service.
thanks again 🙂
Actually, I m able to refresh data source on power bi desktop. But in power bi services, I ve this message :
Refersh failed due to data set needs to be correctly configure on gateway...
And then I want to add dataset to gateway but it does not work... (i use same credentials as for power bi desktop which works well)...
Any idea ?
Please post the actual error message.
However this would point to the scenario where your data source is actually on-premise. In which case, yes, you need a gateway.
Sorry it is in french 🙂 so I ve just translate it:
Refresh failed due to gateway configuration issues.
This dataset requires a properly configured gateway to update.
If you are using personal mode, verify that your gateway is online.
If you are using enterprise mode, verify that you have added the following data sources in the Gateway Management Portal
PostgreSql { server : "drona.db.elephantsql.com" , database : "xxxxx" }
error:
We were unable to register this data source for the gateway instances in this cluster. You can find more details on the specific errors for each gateway instance below.
| Code d'erreur: | DMTS_PublishDatasourceToClusterErrorCode |
| Code d'erreur sous-jacent: | -2147467259 |
| Message d'erreur sous-jacent: | Installez Npgsql version 4.0.10.0 ou antérieure. |
| DM_ErrorDetailNameCode_UnderlyingHResult: | -2147467259 |
| Microsoft.Data.Mashup.ValueError.DataSourceKind: | PostgreSQL |
| Microsoft.Data.Mashup.ValueError.DataSourcePath: | drona.db.elephantsql.com;xxxx |
| Microsoft.Data.Mashup.ValueError.Reason: | DataSource.MissingClientLibrary |
Hi @phaum1967 ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help others in community find the solution easily if they face the same problem with you. Thank you.
Best Regards
Rena
Hi @phaum1967 ,
Please try to downgrade the version of NpgSQL to NpgSQL 4.0.10, then check if the problem still persist. You can review the following documentations for more details.
Gateway error connecting to PostgreSQL
Best Regards
Rena
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!