diff --git a/superset/connectors/sqla/views.py b/superset/connectors/sqla/views.py index e3fb14d07f254..3d4779535bf25 100644 --- a/superset/connectors/sqla/views.py +++ b/superset/connectors/sqla/views.py @@ -244,7 +244,9 @@ def pre_add(self, table): get_datasource_exist_error_mgs(table.full_name)) # Fail before adding if the table can't be found - if not table.database.has_table(table): + try: + table.get_sqla_table_object() + except Exception: raise Exception(_( 'Table [{}] could not be found, ' 'please double check your '