Forum Discussion

alozano93's avatar
alozano93
Frequent Visitor
2 years ago

Getting this error: datasource.error: the table has no visible columns and cannot be queried.

Hello community,

I am currently working on extracting data from our MongoDB database and have encountered an issue that I would like to discuss.

The problem I am facing is related to one specific collection within the database. When attempting to query this collection, I receive the following error message: "datasource.error: the table has no visible columns and cannot be queried."

To provide some context, here is a sample of the data I obtained when exporting this collection from MongoDB:

 

_iduserIdcompanyIdcreatedAtupdatedAt__v
64d2bc3ce3860edadd7a13e164c9f48f56c74a3fd5aa58b964a44e840adca93e5f22a3c62023-08-08T22:05:48.348Z2023-08-08T22:05:48.348Z0
64d2bc3ce3860edadd7a13e264a79b946e3643fc11391c9f64a44e840adca93e5f22a3c62023-08-08T22:05:48.348Z2023-08-08T22:05:48.348Z0
64d2bc3ce3860edadd7a13e464a79b946e3643fc11391c9f64a44e840adca93e5f22a3c62023-08-09T22:05:48.348Z2023-08-09T22:05:48.348Z0
64d2bc3ce3860edadd7a13e364a79b946e3643fc11391c9f64a44e840adca93e5f22a3c62023-10-08T22:05:48.348Z2023-10-08T22:05:48.348Z0

 

What is weird is that the error message suggests that there are no visible columns in the collection, but as you can see, the data contains several columns with meaningful values.

I have attempted various solutions to resolve this issue, including renaming the collection, resetting the database, and even creating a new collection. However, I consistently encounter the same error. Even when creating a new dashboard, the problem persists.

The data types used in this collection include ObjectId, String (x2), Date (x2), and Int32. Could the use of these data types be a contributing factor to the issue?

I have diligently searched for information regarding this specific error related to MongoDB but have not found any relevant insights or solutions.

I would greatly appreciate any guidance or assistance you can provide in resolving this matter. Your expertise and support in addressing this challenge would be invaluable.

Thank you for your time and assistance.

5 Replies