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 Automate / Não consigo me conecta...
Power Automate
Answered

Não consigo me conectar ao postgreSQL

(0) ShareShare
ReportReport
Posted on by 34

Amigos e amigas, estou tentando me conectar com uma base de dados PostgreSQL, para obter linhas de uma tabela.

Instalei o on-premisses padrão, criei um gateway no mesmo ambiente que do power automate, mas quando tento criar uma conexão o gateway não fica disponível para seleção. Quando consulto os Gateways sou informado que "Você não tem um gateway instalado." 

Vocês já passaram por esse problema? Alguém pode me ajudar a resolver?

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Did you install the PostGres driver on the gateway cluster members and did you make sure it works?

  • Marcos2023 Profile Picture
    34 on at

    @lbendlin @lbendlin não instalei nenhum drive. Existe um drive do PostgreSQL para conexão com o Power Automate? Você poderia me enviar o link? Preciso executar um fluxo da nuvem do Power Automate que se conecte a um banco postgreSQL e obtenha linhas de uma tabela. Eu pensava que bastava criar um gateway. Você pode me orientar o que devo faer? Incluí, logo abaixo, uma imagem do que eu preciso fazer.

    Marcos2023_1-1713459796303.png

     

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    The default gateway installation is missing the PostGreSQL drivers. What we usually do is borrow the drivers from a Power BI Desktop installation  (where it is included). But you can also install other drivers if you want. The true proof is when you can successfully demonstrate a connection to the database from the gateway VM.

  • Marcos2023 Profile Picture
    34 on at

    Como fazemos esse "empréstimo"? já tenho o Power BI instalado na VM. 

     

  • Verified answer
    lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    On the VM go to 

    C:\Program Files\Microsoft Power BI Desktop\bin\ADO.NET Providers

     

    copy the Npgsql.config  file and the Npgsql folder

    lbendlin_0-1713463483886.png

    Then go to 

    C:\Program Files\On-premises data gateway\m\ADO.NET Providers

     

    and paste the items there.

    lbendlin_1-1713463590602.png

     

    Then restart the gateway service.

     

  • Marcos2023 Profile Picture
    34 on at

    Muito obrigado pelas dicas, mas continuo com o problema:

    Marcos2023_0-1713466666250.png

    O gateway foi instalado no mesmo ambiente que o power automate, mesmo assim não tenho nenhum gateway instalado. Quando tento criar uma conexão, nenhum gateway é exibido.

     

    Marcos2023_1-1713467024438.png

    Mas se eu procurar na central power platform o gatway está lá, online.

     

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Not sure.  Are you a gateway admin or connection creator?

     

    lbendlin_0-1713468628887.png

     

  • Marcos2023 Profile Picture
    34 on at

    Na VM eu sou administrador.

  • Verified answer
    lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Not on the VM, on the gateway (in the Power BI Service)

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 Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard