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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
supriyad
Frequent Visitor

Power BI and MongoDB Connectivity

Hi All,

 

We have stored huge records of sensors data in our MongoDB database.

Now our moto is to connect this database to Power BI and build various reports which will give us real time scenario or health of all sensors. And also dashboard data should be LIVE.

 

For this purpose I am using MongoDB ODBC Driver for Windows downloaded from here . And have followed these steps.

 

But when I am trying for testing the connection then I am getting following set of errors :

 

  1. Details: "ODBC: ERROR [HY000] [DataDirect][ODBC MongoDB driver][MongoDB]java.lang.OutOfMemoryError: Java heap space ERROR [HY000] [DataDirect][ODBC MongoDB driver][MongoDB]java.lang.OutOfMemoryError: Java heap space"
  2. Details: "ODBC: ERROR [42000] [DataDirect][ODBC MongoDB driver][MongoDB]syntax error or access rule violation: invalid schema name: DIGITAL ERROR [42000] [DataDirect][ODBC MongoDB driver][MongoDB]syntax error or access rule violation: invalid schema name: DIGITAL"


If I am reducing number of records from the respective database then at that time connection gets established easily, but when I am trying to hit LIVE data then I am getting either of the above errors continuosly.

 

For resolving error 1 I have increased to Heap Space upto 3GB but still I am getting same error.

 

So is anybody facing same issue? What should I do to get mongoDB data into Power BI? Or Is there any other way to get LIVE mongoDB data into Power BI and display it within some seconds?

 

Please help.

Thanks in advanced.

 

 

 

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi supriyad,

 

To make data in dashboard be LIVE, user should create a streaming dataset. So are you creating a streaming dataset with data in MongoDB Database using rest API? If so, could you post some code or screenshot of that part in your program?

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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