Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Analitika
Post Prodigy
Post Prodigy

PostgreSQL connection problem in Power BI

Hello,

 

I have tried to connect report to PostgreSQL but during the report refreshing I am getting:

OLE DB or ODBC error: [DataSource.Error] Sybase SQL Anywhere: Connection error: Connection was dropped (may not be a SQL Anywhere server) . An unexpected exception occurred.

 

In data source settings I have also this:

Analitika_0-1630318660115.png

It seems I used ODBC connector.

 

So how to resolve my error in report?

 

 

 

6 REPLIES 6
Analitika
Post Prodigy
Post Prodigy

Analitika_0-1630387518953.png

Also getting this error while refreshing the report.

Anonymous
Not applicable

Hi @Analitika ,

Whether your problem still persist? Which data source you are connecting to currently? Sybase or PostgreSQL? How did you connect to it(Using ODBC)? Could you please provide the applied codes in Advanced Editor?

Importing PostgreSQL Data into Power BI Through an ODBC Connection

yingyinr_0-1630661747871.png

Best Regards

Analitika
Post Prodigy
Post Prodigy

I tried these steps but not helped. Same error remains. 

Analitika_0-1630324878278.png

 

Analitika
Post Prodigy
Post Prodigy

Which one parameters are wrong? In ODBC or Sybase connector?

amitchandak
Super User
Super User

@Analitika , There is some problem with the setting. It is showing error for sybase. Parameters are wrong.

 

Refer to this - it shows two ways. Do not miss steps

https://niftit.com/connecting-power-bi-to-postgresql/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I have already setup postgresql but stilll getting several errors:

 

OLE DB or ODBC error: [DataSource.Error] Sybase SQL Anywhere: Connection error: Connection was dropped (may not be a SQL Anywhere server).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors