web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps Postgres Con...
Power Apps
Unanswered

PowerApps Postgres Connection failing for Azure Hosted PostgreSQL, same gateway & DB works for PowerBI

(0) ShareShare
ReportReport
Posted on by 5

Hi all, 

 

I'm trying to create a PowerApps Connection to an Azure Hosted PostgreSQL Database using an exisiting On Premises Data Gateway. The same Gateway is currently used by PowerBI Pro to connect to the same database on the same server and it works fine.

 

When trying to make the connection via Powerapps Connection screen it fails, saying: Credentials are missing or not valid. inner exception: The credentials provided for the PostgreSQL source are invalid. (Source at servername.postgres.database.azure.com;databasename.) clientRequestId: 

 

Creds have been checked 100 times. 

 

Powerapps can use the same gateway to connect to a non-azure hosted postgres instance that doesn't require the username to be in the username@serverhostname format. 

 

I'm not sure if its a bug with the PowerApps Postgres connector that is in preview or the gateway

 

Looking for ideas, throughts, directions or places to file bugs for PowerApps Connectors

 

TJL

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @TJL ,

     

    After some research, it seems that so far there is no document published for PostgresSQL about the connecting steps.

    Please check if below thread could help:

    https://powerusers.microsoft.com/t5/General-Discussion/Postgres-connection/td-p/63839

     

    Regards,

    Mona

     

  • TJL Profile Picture
    5 on at

    Hi Mona, 

     

    I have reviewed that documentation but I'm not using ODBC, I'm using NPGSQL (https://www.npgsql.org). The same gateway (using NPGSQL) on same machine works perfectly for PowerBi to connect to Azure Hosted PostgreSQL but not when using the PowerApps connector via the same gateway.

     

    I found this documentation: https://docs.microsoft.com/en-us/connectors/postgresql/ ,but under https://docs.microsoft.com/en-us/connectors/postgresql/#creating-a-connection it just refers to entering a username and doesn't mention the format.

     

    I think the connector doesn't support usernames in the username@serverhostname format that Azure Hosted PostgreSQL uses or doesn't pass the information correctly to the On Premise gateway. 

     

    I can PowerApps connector via the same gateway to connect to a local PostgreSQL instance that doesn't use the username@serverhostname format, but that doesn't help me connect to Azure Hosted PostgreSQL! 😞

     

    Anything else you can suggest? Or any one else we can send this to? 

     

    Regards,

     

    TJL

  • TJL Profile Picture
    5 on at

    Poking to see if any one has any ideas about this? 

  • liambm Profile Picture
    14 on at

    A little late to the party, but I just had the same problem for the last hour. Azure's default config for Postgres enforces SSL, looks like the PowerApps connector doesn't support SSL. If you disable "enforce SSL connection" under "Connection security" in your Azure control panel for the Postgres instance it should work (or it did for me anyway)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 600

#2
WarrenBelz Profile Picture

WarrenBelz 478 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard