cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jagrutijoshi Frequent Visitor
Frequent Visitor

ODBC Error: Data source name not found and no default driver specified

Hi,

 

I have created a Power BI Report using a MongoDB data source. I've used the following ODBC connector to connect MongoDB to Power BI http://www.cdata.com/drivers/mongodb/odbc/

 

When I publish my report online and try to schedule refresh using my personal gateway, the following error occurs in the data source credentials: ODBC: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

 

I'm sure that the data source name and driver are specified correctly. Could there be any another reason for this error? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: ODBC Error: Data source name not found and no default driver specified

Hi @jagrutijoshi,

You would also need to add all the CSV data sources under registered on-premises gateway, this way, you would be able to use on-premises gateway to refresh your dataset.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
11 REPLIES 11
Moderator v-yuezhe-msft
Moderator

Re: ODBC Error: Data source name not found and no default driver specified

Hi @jagrutijoshi,

 

Do you install 32 bit or 64 bit ODBC connector ? And do you create system DSN for MongoDB following the guide in this blog?

Could you please install on-premises gateway and add the ODBC data source under the registered gateway, then check if you can set schedule refresh for your dataset?


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jagrutijoshi Frequent Visitor
Frequent Visitor

Re: ODBC Error: Data source name not found and no default driver specified

I have installed 64-bit OBDC connector with proper DSN. On-premises gateway is disabled while we connect via ODBC driver. 

Moderator v-yuezhe-msft
Moderator

Re: ODBC Error: Data source name not found and no default driver specified

Hi @jagrutijoshi,

Have you added the ODBC data source under registered on-premises gateway?

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jagrutijoshi Frequent Visitor
Frequent Visitor

Re: ODBC Error: Data source name not found and no default driver specified

When we load the data in Power BI online via ODBC connector, the on-premises gateway appears disabled. It seems like that functionality is disabled. 

Moderator v-yuezhe-msft
Moderator

Re: ODBC Error: Data source name not found and no default driver specified

Hi @jagrutijoshi,

Could you please post a screenshot about your sceanrio? You can check this similar thread about how to add ODBC data source under gateway.

Thanks,

Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jagrutijoshi Frequent Visitor
Frequent Visitor

Re: ODBC Error: Data source name not found and no default driver specified

pb.PNGThis is what it is showing even though the data source have been connected properly with the gateway.Please refer below for the same:pb2.PNG

 

 

 

 

 

 

 

Moderator v-yuezhe-msft
Moderator

Re: ODBC Error: Data source name not found and no default driver specified

Hi @jagrutijoshi,

Have you included other data source except the ODBC data source in your dataset? Could you please post a screenshot about data sources in your PBIX file?  You can go to File -> Options and settings ->Data source settings to check data sources for Power BI Desktop.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jagrutijoshi Frequent Visitor
Frequent Visitor

Re: ODBC Error: Data source name not found and no default driver specified

We have 3 csv files as well.

Moderator v-yuezhe-msft
Moderator

Re: ODBC Error: Data source name not found and no default driver specified

Hi @jagrutijoshi,

You would also need to add all the CSV data sources under registered on-premises gateway, this way, you would be able to use on-premises gateway to refresh your dataset.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Top Kudoed Authors
Users Online
Currently online: 28 members 888 guests
Please welcome our newest community members: