Hi all,
I have just started with the tasks prior to migrating my PowerBI dataflow that connects to my Mongo Atlas database through the MongoDB ODBC 1.4.5, with the new Atlas SQL Interface.
I have created the federated Mongo database using the Quick Start. I have created the new Atlas SQL ODBC connection in PowerBI, I have installed the Atlas SQL ODBC in the gateway and I have configured it pointing to the federated database, I have imported my PowerBI dataflow into another new workspace where I have changed all the connections of the flow tables, from
Odbc.DataSource(“dsn=MongoDB ODBC”, [HierarchicalNavigation = true])
to
Odbc.DataSource(“dsn=MongoDB Atlas SQL”, [HierarchicalNavigation = true]).
But the results are different. At this point (please, check the snapshots (1) pdf) begin the differences between the two connectors: while with the MongoDB ODBC I receive 4 databases
(INFORMATION_SCHEMA, mysql, bd1, bd2),
with the Atlas SQL ODBC I only receive 2 databases
(bd1,bd2).
But when I go to the next step(please, check the snapshots (2) pdf) (Source{[Name = “bd1”, Kind = “Database”]}[Data]) is when I find more differences, since with the Mongo ODBC I receive 270 rows, and with the Atlas SQL ODBC I receive 59.
I understand that it is because with the Mongo ODBC all collections appear included the “subcollections” that I have created (e.g. clients, clients_additionalQuestions, clients_aml_data_discarded_matches…), but with the Atlas SQL ODBC only grouped collections appear (e.g. clients).
This generates an error (please, check the snapshots (3) pdf) in the queries that I have configured in my dataflow because at some point, a column refers to a “subcollection” that I cannot expand because it does not appear in the prior step - the (2) step- to the database.
Please, see snapshots attached pdf of my Power Bi Dataflow
Atlas SQL troubleshooting indicates that the federated database schema must be updated to solve the error, but when I try to do so, I get this error:
db.runCommand({ sqlGenerateSchema: 1, sampleNamespaces: [“db1”], sampleSize: 1000, setSchemas: true })
MongoServerError: sqlGenerateSchema must be run against the admin database when sampleNamespaces are specified, correlationID = 1823c253e9cf4e2617c56895
There are only 2 databases in the federated instance, but neither of them are working
(same error) . I tried using a wildcard [“db1.*”] with same results.
Could you help me?
Thanks in advance
MongoSnapshots.pdf (146.6 KB)