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 / Credentials are missin...
Power Apps
Suggested Answer

Credentials are missing or not valid. inner exception: The credentials provided for the PostgreSQL source are invalid.

(0) ShareShare
ReportReport
Posted on by

I am trying to create a connection to get data from POSTGRESQL server for my PowerApp. However when im entering the server name, db name and user credentials im getting this error 

 

"Credentials are missing or not valid. inner exception: The credentials provided for the PostgreSQL source are invalid."

 

I know there are several solved questions encountering errors but the solutions state that these credentials start working after a day or so and the same credentials start working. 

Other solutions were to ensure the password doesnt have any '@' or clearing the browser cookies and a few other random solutions. 

 

None seem to work for me and establishing a connection is essential to the app. Please let me know if there is any solution cause I havent had any luck solving it. 

 

Thanks

ss.PNG
Categories:
  • K-A-R-L Profile Picture
    715 on at

    Hi @umangmistryBO,

     

    Have you tried add a gateway? Connecting to PostgresSQL would need to install a gateway first.


    I assume that you already have PostgreSQL client software installed and that you can already connect successfully to the target PostgreSQL database.

     

    Currently there is no document published for PostgresSQL about the connecting steps.But I think it should be similar with the steps for Oracle:

    Try this link: https://powerapps.microsoft.com/en-us/blog/connecting-to-oracle-database-from-powerapps-flow-and-logic-apps/

     

    Connecting to Oracle Database from PowerApps, Flow and Logic Apps

    Or you may take a reference of the following thread:

    PostgreSQL Connection through On-premise Data Gateway

     

    For ODBC connection to postgres you need to get installed ODBC driver for postgres;i am using PostgresSQL Unicode(x64).

    After that you have 2 options:

    1) create user DSN via ODBC data source administrator (C:\Windows\System32\odbcad32.exe). In that case the connection string for ODBC data source is "dsn=dsn_name" where dsn_name represents the user dsn created via tool above

    2) alternative option for connection string is: driver={PostgreSQL Unicode(x64)};server=server_name;port=5432;database=db_name

    where server_name represents a server name or its IP, db_name is name of database.

    For using on-premise gateway you need to use ODBC connection to postgress on power bi desktop. Then you need to configure data sources using ODBC the same way on on-premise gateway.

     

    Hope the information above is helpful

     

    Thanks,
    K-A-R-L


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

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @umangmistryBO how are you progressing with this? Was the above reply helpful?

     

    @Anonymous 

  • WillPage Profile Picture
    2,339 Super User 2026 Season 1 on at

    @umangmistryBO  Did you ever solve this? I currently have this issue. PostgreSQL server in Azure which I can access fine via Power BI using the same credentials but in Power Automate and Logic Apps this error is thrown.

    I had an @ in the password so I went to the trouble of changing that, but same issue.

    WillPage_1-1638485152451.png

    Really need this to work!

     

     

     

  • eca Profile Picture
    2 on at

    Tried "encrypt connection" worked for me, and "server:port" as well

    eca_0-1663855102303.png

     

  • Nam1209 Profile Picture
    21 on at

    Hi @eca,

     

    Could you please help me with your information. I am stuck when trying to connect to PostgreSQL connection to my power App?

     

    Could you tell me what should I fill in thóe blank. I have tries several thing but still have the same problem.

    Please see the pictures below.

    Thanks in advance

    Nam1209_0-1682059048069.png

     

    Nam1209_1-1682059085875.png

     

  • Suggested answer
    CU26091206-0 Profile Picture
    2 on at
    I had the same issue and struggled searching in MS forums, but I didn't find anything about this.

    I was trying multiple things and one time I have selected 'encrypt connection' checkbox and it worked immediately.

    You can try with below option 'server:port', db name, credentials and check encrypt connection.
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard