diff --git a/superset/connectors/sqla/views.py b/superset/connectors/sqla/views.py index 12f9d6d55561..591fcc147575 100644 --- a/superset/connectors/sqla/views.py +++ b/superset/connectors/sqla/views.py @@ -238,7 +238,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 '