Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Error message: ODBC: ERROR [07006] [MongoDB][API] BSON type objectId cannot be converted to ODBC typ

Hi!
I'm connecting Power BI to an MongoDB database through the default Atlas SQL connector.

While that worked well for most of the tables in the database, there is one that giving me the following error:

 

Do you know how I can fix this?

 

1 Reply

  • foodd's avatar
    foodd
    Community Champion

    This is a recommendation only, as I don't have a way to test without a MongoDB instance.

     

    From your description and the error message this sounds as if the data type of a column in MongoDB is not compatible with the data type of the corresponding column in Power BI Desktop.

     

    While not conducive to connecting to multiple tables, are you able to 'select * from tablename' on the table giving trouble?

     

     

    For example:

     

     

    The connector is provided by MongoDB. If you have questions regarding the use and capabilities of the Connector, consider visiting the MongoDB Support Portal or opening a Support Ticket.