Test PostgreSQL port reachability
Run the port test from the gateway host. If it fails, check PostgreSQL listen_addresses, pg_hba.conf, DNS, and firewall rules.
Test-NetConnection <postgres-server-name-or-ip> -Port 5432Check PostgreSQL host reachability, Npgsql/provider prerequisites, database grants, schema access, SSL settings, and table primary keys before building PostgreSQL action templates.
Run the port test from the gateway host. If it fails, check PostgreSQL listen_addresses, pg_hba.conf, DNS, and firewall rules.
Test-NetConnection <postgres-server-name-or-ip> -Port 5432Use the same server, database, username, and SSL expectation that Power Automate will use.
psql -h <server> -p 5432 -U <user> -d <database> -c "select current_user, current_database();"If the connection succeeds but tables do not appear, verify schema usage and table privileges for the Power Automate user.
GRANT CONNECT ON DATABASE flowmigrator_postgres_lab TO flowmigrator_postgres_user;GRANT USAGE ON SCHEMA public TO flowmigrator_postgres_user;GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO flowmigrator_postgres_user;If Power Automate errors mention a missing provider or driver, install the PostgreSQL/Npgsql provider required by the connector on the gateway machine and restart the gateway service.
Restart-Service PBIEgwService| Field | Use this value |
|---|---|
| Server | Gateway-reachable PostgreSQL host name or IP. |
| Database | Exact database name. |
| Username | Database user with schema and table grants. |
| Gateway | Gateway host with required PostgreSQL provider installed if needed. |