When attempting to connect to a PostgreSQL database in Tableau Desktop 2020.4 or newer, in an environment where a proxy server is enabled, the following error occurs:
Starting in version 2020.4, Tableau uses JDBC by default when connecting to PostgreSQL instead of ODBC. JDBC drivers can have trouble interpreting proxy settings which leads to a connection failure.
The Postgres host Azure blocks the connection.
Option 1
If your proxy server does not support SOCKS protocol, disable "Use the same proxy for all protocols" and make sure Socks protocol fields are blank.
Option 2
If the database address is added to the exceptions list for the proxy server, do not use wildcards - specify the full IP address or FQDN.
Option 3
Connect to the database using ODBC instead of JDBC. Remove the PostgreSQL JDBC driver from 'C:\Program Files\Tableau\Drivers' and Tableau will fallback to using ODBC with the native PostgreSQL connector.
001471361

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.