Medium severitydata source
Power BI Refresh Error:
DF-PGSQL-InvalidCredential
What does this error mean?
The PostgreSQL username or password in the ADF linked service is wrong, the pg_hba.conf on the server doesn't allow the connection method, or the database user doesn't exist. ADF uses standard PostgreSQL authentication — any mismatch between the stored credentials and the server's actual user configuration will cause this error.
Common causes
- 1The PostgreSQL user password was changed but the ADF linked service was not updated
- 2The linked service references a user that doesn't exist in the target database or has been dropped
- 3The pg_hba.conf authentication method for the user or host is set to 'reject' or 'md5' when a different method is expected
- 4The password is stored in Azure Key Vault and the Key Vault secret was rotated or the reference is incorrect
How to fix it
- 1In ADF Studio, open the PostgreSQL linked service and update the username and password to the current values.
- 2If the password is stored in Azure Key Vault, verify the secret name and version match the current active secret.
- 3Test the credentials directly: connect with psql or pg_admin using the same hostname, port, database, username, and password from the linked service.
- 4On the PostgreSQL server, check pg_hba.conf to confirm the host/user/database combination is allowed and uses 'md5' or 'scram-sha-256' authentication.
- 5Test connection the linked service and re-publish the ADF pipeline before triggering a new run.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-troubleshoot-guide