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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
sgamage
Regular Visitor

db2 connection error

Hello experts,

I'm encountering an error when im trying to get data using the db2 connection: Microsoft Db2 Client: No connection could be made becasue the target machine actively refused it SQLSTATE=08S01 SQLCODE=-1037. 

Does anyone have any advice on why this might be happening?

 

 

Thanks

 

Sahan

9 REPLIES 9

Same error, can we have any solution for this??

Hi ! I need a solution on this issue, DB2 connector in Power BI is not working for me. Same error showed.

dgeiger
Regular Visitor

Also having this error. Even within Power BI, I can connect to the same source with ODBC, but for reasons of filtering and number of results, would like to connect via Db2.

Gowtham4446
Advocate I
Advocate I

No, Please anyone help me, i am also encountering the same error.

krepko7
Microsoft Employee
Microsoft Employee

We are getting the same error during a client POC.  DB2 works fine when you pull data in Excel.  The sames doesn't work in Power BI.

Did anybody ever get this resolved?  I am having the same issue were I can connect to the source DB2 (iSeries) from Excel, Access, SQL but not Power BI.

Anonymous
Not applicable

Hi @sgamage,

Do you get the above error when connecting to DB2 database from Power BI Desktop? If that is the case, could you please connect to DB2 database from other application such as Excel and check if it is successful?

According to the above error message, there are some proposals for you troubleshooting it.

a. Verify that if the DB2 server is up and running.
b. Check the port status by using “netstat” in your DB2 server and verify the port is in state Listen.
c. Include the port number in your connection string when connecting to DB2 database.


Thanks,
Lydia Zhang

 How do I execute this tests?

 

Do you have a documentation?

 

Vanice

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors