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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Vineela__sai19
Frequent Visitor

undefined

Issue connecting mainframe db2 to pbi desktop. When we are trying to connect to the db through db tool like dbeaver it is getting connected. But when we are trying to connect to pbi it is throwing error like couldn't authenticate with the credentials provided. But the same credentials were working fine with db tool. Why it is not in pbi. Please suggest. ASAP

 

Thanks in advance.

4 REPLIES 4
Vineela__sai19
Frequent Visitor

Vineela__sai19_0-1714995662226.png

After this step. I'm getting "we couldn't authenticate with the credentials provided" error. But the credentials were accurate.

Anonymous
Not applicable

Hi @Vineela__sai19 ,

By default, Power Query attempts to connect to the IBM Db2 database using an encrypted connection. If Power Query can't connect using an encrypted connection, an "unable to connect" dialog box will appear. To connect using an unencrypted connection, select OK.

 

vrongtiepmsft_0-1715059077559.png

More details: Power Query IBM Db2 database connector - Power Query | Microsoft Learn

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

IMG_20240507_115043482.jpg

 This is the error I'm getting when trying to connect. But the credentials were accurate.

Anonymous
Not applicable

Hi @Vineela__sai19 ,

To make the connection, take the following steps:

  • Select the IBM Db2 database option from Get Data.
  • Specify the IBM Db2 server to connect to in Server. If a port is required, specify it by using the format ServerName:Port, where Port is the port number. Also, enter the IBM Db2 database you want to access in Database
  • If you're connecting from Power BI Desktop, select either the Import or DirectQuery data connectivity mode.

vrongtiepmsft_0-1714700624237.png

  • If this is the first time you're connecting to this IBM Db2 database, select the authentication type you want to use, enter your credentials, and then select Connect.
  • By default, Power Query attempts to connect to the IBM Db2 database using an encrypted connection. If Power Query can't connect using an encrypted connection, an "unable to connect" dialog box will appear. To connect using an unencrypted connection, select OK.

More details: Power Query IBM Db2 database connector - Power Query | Microsoft Learn

 

If it still does not help, please provide more error information.

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.