Tableau ERROR: current transaction is aborted, commands ignored until end of transaction block

Tableau ERROR: current transaction is aborted, commands ignored until end of transaction block

When trying to connect to postgres DB we get this error. Cause – Check drivers

https://www.tableau.com/support/drivers

Data source – postgre SQL

https://help.tableau.com/current/pro/desktop/en-us/examples_postgresql.htm