March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Team,
I am trying to connect PowerBI to MongoDB database using MongoDB ODBC connector after doing all steps listed in this link: https://docs.mongodb.com/bi-connector/master/local-quickstart/
To create a Data Source Name (DSN) I have used https://docs.mongodb.com/bi-connector/current/tutorial/create-system-dsn/
After following all steps and doing everything, when I try to connect with PowerBI Desktop, it connects using DSN and brings databases and collections list but when click to any collection(s), following error message is showing.
DataSource.Error: ODBC: ERROR [42S21] [MySQL][ODBC 1.1(w) Driver][mysqld-5.7.12 mongosqld v2.11.0]Duplicate column name 'KEY_COLUMN_USAGE.CONSTRAINT_CATALOG'
Details:
DataSourceKind=Odbc
DataSourcePath=dsn=MONGO 1
OdbcErrors=Table
Please help ASAP
Thanks,
Solved! Go to Solution.
Try following steps:
I used Advanced Options and wrote SQL Statement (select * from zips) to resolve but this is not concrete solutions but still you can work.
A dialog box opens and displays the data that is returned from the data store. If you used a SQL statement to specify what data is returned, then the dialog box only displays the rows returned by the SQL statement.
The selected data is loaded into Power BI Desktop and listed in the Fields task pane. You can now use Power BI to analyze the data.
Thanks,
Rizwan Siddiqui
Dear All,
Installed ODBC -> BI Connector -> Setup DSN for Remote Server -> Connection Successful (1st screencap attached) -> Able to read Databases & Tables or Documents in Power BI Desktop from MongoDB.
After I selected a particular Table/Document on the lefthandside, the 'Preview is evaluating...' is taking forever and the data is not displayed (2 screencap attached).
Can anyone please let me know if I have missed a step and why is my Power BI Desktop still not able to display the data so that I can go ahead into Transform Data and do the needful before creating Reports & Dashboards?
Thanks in advance for your valuable time.
Kind regards,
YogiBear
Hello, We are trying to pull data from MongoDB to Power BI. Do we need to have any license to do that?
I was also stuck with the MongoDB ODBC connector for windows and did not find any help over the internet. So after debugging lots of hours i finally able to connect with the MongoDB ODBC with my server. So, first of all, you need to download these prerequisites.
Download and Install Community Server https://www.mongodb.com/download-center/community
Download and Install https://www.mongodb.com/download-center/bi-connector
Download and Install https://github.com/mongodb/mongo-odbc-driver/releases
Check the Full tutorial here
I was experiencing the same problem. I think there's a regression with MongoDB BI Connector v. 2.11. I've downgrade to 2.9 and 2.10, and it solved the problem for me.
Stephane.
Indeed, same here. I have this problem since I upgraded to BI connector 2.11.
Hi,
can you share downloadable link for 2.9/2.10 version?
Thanks
It works when you downgrade to the 2.10.0 i just tested. Here's the download link for the 2.10.0
https://info-mongodb-com.s3.amazonaws.com/mongodb-bi/v2/mongodb-bi-win32-x86_64-v2.10.0.msi
@Anonymous @mrlucifer ,
I uninstalled my BI Connector and intsalled v2.10 from the provided link. However, I'm getting the same error in Power BI.
Does the section "mysqld-5.7.12 mongosqld v2.11.0" have anything to do with it (since it doesn't say v2.10")?
It's working 100% fine once you downgrade the version. If you still can't make it work we can discuss via chat or email me aman@knesk.com
I have the same problem. I would love to find out how to resolve. Here are some details:
Try following steps:
I used Advanced Options and wrote SQL Statement (select * from zips) to resolve but this is not concrete solutions but still you can work.
A dialog box opens and displays the data that is returned from the data store. If you used a SQL statement to specify what data is returned, then the dialog box only displays the rows returned by the SQL statement.
The selected data is loaded into Power BI Desktop and listed in the Fields task pane. You can now use Power BI to analyze the data.
Thanks,
Rizwan Siddiqui
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |