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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.