Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

ODBC Gateway Setup fail!

Hi, 

1) the base info : PBI - Pro, Gateway - On-premises

2) I learned about the community's thread on this issue https://community.powerbi.com/t5/Service/Can-t-connect-ODBC-datasource-to-gateway/m-p/797173

3) and do the everything follow up its instructions

4) The PBI Desktop connect the ODBC datasoure successfully!!

5) connection string I setup as "dsn=pbi_bpcsf" since the powerquery shows as the following,:

let
source = Odbc.DataSource("dsn=pbi_bpcsf", [HierarchicalNavigation=true]),
US400CN_Database = source{[Name="US400CN",Kind="Database"]}[Data],
BPCSF_Schema = US400CN_Database{[Name="BPCSF",Kind="Schema"]}[Data],
LWK_Table = BPCSF_Schema{[Name="LWK",Kind="Table"]}[Data],

... ...

and gateway schedule show is :

"ODBC('connectionstring:dsn=pbi_bpcsf')"

 

6) ODBC data source administrator - both(32-bit) and (64-bit) all have setup.

7) But it still did not work after I add "Add" button in Gateway setup main window,  the main window throw error message:

HOW CAN I DO?  NEED HELP!

Unable to connect: We encountered an error while trying to connect to . Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance."Hide details

Activity ID:a398f15a-15c3-4bd8-b3b1-44cc9ee65a48
Request ID:dda9fab1-2b91-b072-1253-88043abe5f5a
Cluster URI:https://wabi-west-us-redirect.analysis.windows.net/
Status code:400
Error Code:DMTS_PublishDatasourceToClusterErrorCode
Time:Sat Jul 18 2020 21:52:21 GMT+0800 
Service version:13.0.13860.51
Client version:2007.1.01830-train
SuZ-Gateway:Unable to connect to the data source undefined.
Underlying error code:-2147467259
Underlying error message:ODBC: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
DM_ErrorDetailNameCode_UnderlyingHResult:-2147467259
Microsoft.Data.Mashup.ValueError.DataSourceKind:Odbc
Microsoft.Data.Mashup.ValueError.DataSourcePath:dsn=pbi_bpcsf
Microsoft.Data.Mashup.ValueError.OdbcErrors:#table({"SQLState", "NativeError", "Message"}, {})
Microsoft.Data.Mashup.ValueError.Reason:DataSource.Error
  • lbendlin's avatar
    lbendlin
    6 years ago

    You need to successfully connect to your data source via ODBC on the gateway VM before you can proceed to create the connection on the gateway. The ODBC system dialog has a "Test" option. You can use that, or install a database client on the gateway VM for the test.

13 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      No , cannot , that's why I post this issue for help....!

       

      And.. I can connect data /and SQL data through ODBC to PBI desktop , it's successfully...

       

      JUST Gateway setup datasource for refresh fail...

      • lbendlin's avatar
        lbendlin
        Super User

        You need to successfully connect to your data source via ODBC on the gateway VM before you can proceed to create the connection on the gateway. The ODBC system dialog has a "Test" option. You can use that, or install a database client on the gateway VM for the test.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi is there solution to this problem?