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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hb0135
Helper III
Helper III

Error is showing while adding the ODBC Dataset to gateway for scheduled refresh.

Hello
Below error is showing while adding the ODBC Data set to gateways for scheduled refresh

hb0135_0-1687778325498.png

also for authentication i have used my windows username and  password is any either username or password we have to used
Thanks,
BR 
Atharva

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @hb0135 

The error code "Unable to connect to the data source. Either the data source is inaccessible, a connection timeout occurred, or the data source credentials are invalid" seems that the we use this credential can not connect to the data source.

 

First, you can use Power BI Desktop to test whether you can use ODBC to connect to the data source on the computer where you installed the local data gateway. Note that we need the computer where the local data gateway is installed to have permission to access our data source.

At the same time, you can also try to uninstall and install the latest version of the gateway to rule out the problem of the gateway version.

Power BI Gateway | Microsoft Power BI

 

Secondly,You can also check if the user has the necessary permissions to access the data source and if the firewall is not blocking the connection. 

The authentication types available are:

  • Default or Custom: Select this authentication type when you don't specify any credentials if you're using DSN configured with a username and password. Or, if you need to include credentials as connection string properties.
  • Windows: Select this authentication type if you want to connect using Windows authentication. Optionally, include any connection string properties you need.
  • Database: Select this authentication type to use a username and password to access a data source with an ODBC driver. Optionally, include any connection string properties you need. This is the default selection.

For this you can refer to :
Power Query ODBC connector - Power Query | Microsoft Learn

And also you can check the ODBC connection string ,for this you can refer to :
Power BI gateway and Report Builder support for ODBC data sources - Power BI | Microsoft Learn

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @hb0135 

The error code "Unable to connect to the data source. Either the data source is inaccessible, a connection timeout occurred, or the data source credentials are invalid" seems that the we use this credential can not connect to the data source.

 

First, you can use Power BI Desktop to test whether you can use ODBC to connect to the data source on the computer where you installed the local data gateway. Note that we need the computer where the local data gateway is installed to have permission to access our data source.

At the same time, you can also try to uninstall and install the latest version of the gateway to rule out the problem of the gateway version.

Power BI Gateway | Microsoft Power BI

 

Secondly,You can also check if the user has the necessary permissions to access the data source and if the firewall is not blocking the connection. 

The authentication types available are:

  • Default or Custom: Select this authentication type when you don't specify any credentials if you're using DSN configured with a username and password. Or, if you need to include credentials as connection string properties.
  • Windows: Select this authentication type if you want to connect using Windows authentication. Optionally, include any connection string properties you need.
  • Database: Select this authentication type to use a username and password to access a data source with an ODBC driver. Optionally, include any connection string properties you need. This is the default selection.

For this you can refer to :
Power Query ODBC connector - Power Query | Microsoft Learn

And also you can check the ODBC connection string ,for this you can refer to :
Power BI gateway and Report Builder support for ODBC data sources - Power BI | Microsoft Learn

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

Hello,

Thanks for the Solution and support

BR

Atharva

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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