Error "...exceeds Max Document Size" When Attempting to Connect to MongoDB BI

Published: 14 Dec 2017
Last Modified Date: 14 Dec 2017


When attempting to create a workbook using the MongoDB BI connector, the following error may be returned. 

Error: "[MySQL][ODBC 5.3(w) Driver][mysqld-x.x.x mongosqld vx]failed to execute aggregate: (Locationxxxx) Total size of documents in resources matching { $match: { $and: [ { managingOrganization.reference: { $eq: \"Organization/fs1\" } }, {} ] } } exceeds maximum document size\n"} " 


  • Tableau Desktop
  • Tableau Server
  • MongoDB BI Connector


Option 1

This option includes information about third-party products. Please note that while we make every effort to keep references to third-party content accurate, the information we provide here might change without notice.

As this is a MongoDB limitation, we recommend reviewing the MongoDB documentation and contacting MongoDB support.  The following MongoDB documentation provides additional information on the MongoDB limits and thresholds.

Option 2

As a workaround, limit the amount of data you are attempting to connect to. This can be done with extracts, hiding columns prior to extract creation, aggregating the data to a greater level of granularity etc...


This is a current limitation of the MongoDB BI Connector. 
Did this article resolve the issue?