Error with scanning oracle database (12c) after upgrade from v0.36.7 to v0.38.3

Hi all.
After upgrading from version v0.36.7 to v0.38.3 I face strange issues in connection with an Oracle 12 c Database (Oracle Database 12c Standard Edition Release 12.2.0.1.0)
Only a very little amount of Question (but unfortunately the most important one) which did work before on v0.36.7 are having now errors.

The error is the following comes up:

  • ORA-00942: table or view does not exist

In the logs at the same time i see:

2021-04-14 09:09:02,404 ERROR middleware.catch-exceptions :: Error processing query: null
{:database_id 7,
 :started_at #t "2021-04-14T09:09:01.702564Z[GMT]",
 :via
 [{:status :failed,
   :class java.sql.SQLSyntaxErrorException,
   :error "ORA-00942: table or view does not exist\n",
   :stacktrace
   ["oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:628)"
    "oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:562)"
    "oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1145)"
    "oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:726)"
    "oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:291)"
    "oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:492)"
    "oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:148)"
    "oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:928)"
    "oracle.jdbc.driver.OracleStatement.prepareDefineBufferAndExecute(OracleStatement.java:1158)"
    "oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1093)"
    "oracle.jdbc.driver.OracleStatement.executeSQLSelect(OracleStatement.java:1402)"
    "oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1285)"
    "oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3735)"
    "oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3847)"
    "oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1098)"
    "com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)"
    "--> driver.sql_jdbc.execute$fn__77724.invokeStatic(execute.clj:265)"
    "driver.sql_jdbc.execute$fn__77724.invoke(execute.clj:263)"
    "driver.sql_jdbc.execute$execute_reducible_query$fn__77803.invoke(execute.clj:391)"
    "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:390)"
    "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)"
    "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:384)"
    "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)"
    "driver.sql_jdbc$fn__79239.invokeStatic(sql_jdbc.clj:54)"
    "driver.sql_jdbc$fn__79239.invoke(sql_jdbc.clj:52)"
    "driver.oracle$eval576$fn__577.invoke(oracle.clj:310)"
    "query_processor.context$executef.invokeStatic(context.clj:59)"
    "query_processor.context$executef.invoke(context.clj:48)"
    "query_processor.context.default$default_runf.invokeStatic(default.clj:68)"
    "query_processor.context.default$default_runf.invoke(default.clj:66)"
    "query_processor.context$runf.invokeStatic(context.clj:45)"
    "query_processor.context$runf.invoke(context.clj:39)"
    "query_processor.reducible$pivot.invokeStatic(reducible.clj:34)"
    "query_processor.reducible$pivot.invoke(reducible.clj:31)"
    "query_processor.middleware.mbql_to_native$mbql__GT_native$fn__46455.invoke(mbql_to_native.clj:25)"
    "query_processor.middleware.check_features$check_features$fn__45707.invoke(check_features.clj:41)"
    "query_processor.middleware.limit$limit$fn__46441.invoke(limit.clj:37)"
    "query_processor.middleware.cache$run_query_with_cache.invokeStatic(cache.clj:184)"
    "query_processor.middleware.cache$run_query_with_cache.invoke(cache.clj:175)"
    "query_processor.middleware.cache$maybe_return_cached_results$fn__45171.invoke(cache.clj:210)"
    "query_processor.middleware.optimize_datetime_filters$optimize_datetime_filters$fn__46620.invoke(optimize_datetime_filters.clj:133)"
    "query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__44317.invoke(auto_parse_filter_values.clj:43)"
    "query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__40636.invoke(wrap_value_literals.clj:147)"
    "query_processor.middleware.annotate$add_column_info$fn__40499.invoke(annotate.clj:582)"
    "query_processor.middleware.permissions$check_query_permissions$fn__45582.invoke(permissions.clj:75)"
    "query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__47143.invoke(pre_alias_aggregations.clj:40)"
    "query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__45780.invoke(cumulative_aggregations.clj:60)"
    "query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__47456.invoke(resolve_joined_fields.clj:94)"
    "query_processor.middleware.resolve_joins$resolve_joins$fn__47761.invoke(resolve_joins.clj:178)"
    "query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__43911.invoke(add_implicit_joins.clj:181)"
    "query_processor.middleware.large_int_id$convert_id_to_string$fn__46416.invoke(large_int_id.clj:44)"
    "query_processor.middleware.format_rows$format_rows$fn__46396.invoke(format_rows.clj:74)"
    "query_processor.middleware.desugar$desugar$fn__45846.invoke(desugar.clj:21)"
    "query_processor.middleware.binning$update_binning_strategy$fn__44677.invoke(binning.clj:228)"
    "query_processor.middleware.resolve_fields$resolve_fields$fn__45389.invoke(resolve_fields.clj:24)"
    "query_processor.middleware.add_dimension_projections$add_remapping$fn__43541.invoke(add_dimension_projections.clj:316)"
    "query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__43772.invoke(add_implicit_clauses.clj:146)"
    "query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__48191.invoke(upgrade_field_literals.clj:45)"
    "query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__44064.invoke(add_source_metadata.clj:122)"
    "query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__47340.invoke(reconcile_breakout_and_order_by_bucketing.clj:97)"
    "query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__44264.invoke(auto_bucket_datetimes.clj:139)"
    "query_processor.middleware.resolve_source_table$resolve_source_tables$fn__45436.invoke(resolve_source_table.clj:45)"
    "query_processor.middleware.parameters$substitute_parameters$fn__47125.invoke(parameters.clj:111)"
    "query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__45488.invoke(resolve_referenced.clj:79)"
    "query_processor.middleware.expand_macros$expand_macros$fn__46102.invoke(expand_macros.clj:155)"
    "query_processor.middleware.add_timezone_info$add_timezone_info$fn__44073.invoke(add_timezone_info.clj:15)"
    "query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__48127.invoke(splice_params_in_response.clj:32)"
    "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351$fn__47355.invoke(resolve_database_and_driver.clj:31)"
    "driver$do_with_driver.invokeStatic(driver.clj:60)"
    "driver$do_with_driver.invoke(driver.clj:56)"
    "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351.invoke(resolve_database_and_driver.clj:25)"
    "query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__46342.invoke(fetch_source_query.clj:274)"
    "query_processor.middleware.store$initialize_store$fn__48136$fn__48137.invoke(store.clj:11)"
    "query_processor.store$do_with_store.invokeStatic(store.clj:44)"
    "query_processor.store$do_with_store.invoke(store.clj:38)"
    "query_processor.middleware.store$initialize_store$fn__48136.invoke(store.clj:10)"
    "query_processor.middleware.validate$validate_query$fn__48198.invoke(validate.clj:10)"
    "query_processor.middleware.normalize_query$normalize$fn__46468.invoke(normalize_query.clj:22)"
    "query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__43929.invoke(add_rows_truncated.clj:35)"
    "query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__48112.invoke(results_metadata.clj:147)"
    "query_processor.middleware.constraints$add_default_userland_constraints$fn__45723.invoke(constraints.clj:42)"
    "query_processor.middleware.process_userland_query$process_userland_query$fn__47214.invoke(process_userland_query.clj:135)"
    "query_processor.middleware.catch_exceptions$catch_exceptions$fn__45666.invoke(catch_exceptions.clj:173)"
    "query_processor.reducible$async_qp$qp_STAR___37239$thunk__37240.invoke(reducible.clj:103)"
    "query_processor.reducible$async_qp$qp_STAR___37239$fn__37242.invoke(reducible.clj:108)"],
   :state "42000"}
  {:status :failed,
   :class clojure.lang.ExceptionInfo,
   :error "Error executing query",
   :stacktrace
   ["--> driver.sql_jdbc.execute$execute_reducible_query$fn__77803.invoke(execute.clj:393)"
    "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:390)"
    "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)"
    "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:384)"
    "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)"
    "driver.sql_jdbc$fn__79239.invokeStatic(sql_jdbc.clj:54)"
    "driver.sql_jdbc$fn__79239.invoke(sql_jdbc.clj:52)"
    "driver.oracle$eval576$fn__577.invoke(oracle.clj:310)"
    "query_processor.context$executef.invokeStatic(context.clj:59)"
    "query_processor.context$executef.invoke(context.clj:48)"
    "query_processor.context.default$default_runf.invokeStatic(default.clj:68)"
    "query_processor.context.default$default_runf.invoke(default.clj:66)"
    "query_processor.context$runf.invokeStatic(context.clj:45)"
    "query_processor.context$runf.invoke(context.clj:39)"
    "query_processor.reducible$pivot.invokeStatic(reducible.clj:34)"
    "query_processor.reducible$pivot.invoke(reducible.clj:31)"
    "query_processor.middleware.mbql_to_native$mbql__GT_native$fn__46455.invoke(mbql_to_native.clj:25)"
    "query_processor.middleware.check_features$check_features$fn__45707.invoke(check_features.clj:41)"
    "query_processor.middleware.limit$limit$fn__46441.invoke(limit.clj:37)"
    "query_processor.middleware.cache$run_query_with_cache.invokeStatic(cache.clj:184)"
    "query_processor.middleware.cache$run_query_with_cache.invoke(cache.clj:175)"
    "query_processor.middleware.cache$maybe_return_cached_results$fn__45171.invoke(cache.clj:210)"
    "query_processor.middleware.optimize_datetime_filters$optimize_datetime_filters$fn__46620.invoke(optimize_datetime_filters.clj:133)"
    "query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__44317.invoke(auto_parse_filter_values.clj:43)"
    "query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__40636.invoke(wrap_value_literals.clj:147)"
    "query_processor.middleware.annotate$add_column_info$fn__40499.invoke(annotate.clj:582)"
    "query_processor.middleware.permissions$check_query_permissions$fn__45582.invoke(permissions.clj:75)"
    "query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__47143.invoke(pre_alias_aggregations.clj:40)"
    "query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__45780.invoke(cumulative_aggregations.clj:60)"
    "query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__47456.invoke(resolve_joined_fields.clj:94)"
    "query_processor.middleware.resolve_joins$resolve_joins$fn__47761.invoke(resolve_joins.clj:178)"
    "query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__43911.invoke(add_implicit_joins.clj:181)"
    "query_processor.middleware.large_int_id$convert_id_to_string$fn__46416.invoke(large_int_id.clj:44)"
    "query_processor.middleware.format_rows$format_rows$fn__46396.invoke(format_rows.clj:74)"
    "query_processor.middleware.desugar$desugar$fn__45846.invoke(desugar.clj:21)"
    "query_processor.middleware.binning$update_binning_strategy$fn__44677.invoke(binning.clj:228)"
    "query_processor.middleware.resolve_fields$resolve_fields$fn__45389.invoke(resolve_fields.clj:24)"
    "query_processor.middleware.add_dimension_projections$add_remapping$fn__43541.invoke(add_dimension_projections.clj:316)"
    "query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__43772.invoke(add_implicit_clauses.clj:146)"
    "query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__48191.invoke(upgrade_field_literals.clj:45)"
    "query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__44064.invoke(add_source_metadata.clj:122)"
    "query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__47340.invoke(reconcile_breakout_and_order_by_bucketing.clj:97)"
    "query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__44264.invoke(auto_bucket_datetimes.clj:139)"
    "query_processor.middleware.resolve_source_table$resolve_source_tables$fn__45436.invoke(resolve_source_table.clj:45)"
    "query_processor.middleware.parameters$substitute_parameters$fn__47125.invoke(parameters.clj:111)"
    "query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__45488.invoke(resolve_referenced.clj:79)"
    "query_processor.middleware.expand_macros$expand_macros$fn__46102.invoke(expand_macros.clj:155)"
    "query_processor.middleware.add_timezone_info$add_timezone_info$fn__44073.invoke(add_timezone_info.clj:15)"
    "query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__48127.invoke(splice_params_in_response.clj:32)"
    "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351$fn__47355.invoke(resolve_database_and_driver.clj:31)"
    "driver$do_with_driver.invokeStatic(driver.clj:60)"
    "driver$do_with_driver.invoke(driver.clj:56)"
    "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351.invoke(resolve_database_and_driver.clj:25)"
    "query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__46342.invoke(fetch_source_query.clj:274)"
    "query_processor.middleware.store$initialize_store$fn__48136$fn__48137.invoke(store.clj:11)"
    "query_processor.store$do_with_store.invokeStatic(store.clj:44)"
    "query_processor.store$do_with_store.invoke(store.clj:38)"
    "query_processor.middleware.store$initialize_store$fn__48136.invoke(store.clj:10)"
    "query_processor.middleware.validate$validate_query$fn__48198.invoke(validate.clj:10)"
    "query_processor.middleware.normalize_query$normalize$fn__46468.invoke(normalize_query.clj:22)"
    "query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__43929.invoke(add_rows_truncated.clj:35)"
    "query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__48112.invoke(results_metadata.clj:147)"
    "query_processor.middleware.constraints$add_default_userland_constraints$fn__45723.invoke(constraints.clj:42)"
    "query_processor.middleware.process_userland_query$process_userland_query$fn__47214.invoke(process_userland_query.clj:135)"
    "query_processor.middleware.catch_exceptions$catch_exceptions$fn__45666.invoke(catch_exceptions.clj:173)"
    "query_processor.reducible$async_qp$qp_STAR___37239$thunk__37240.invoke(reducible.clj:103)"
    "query_processor.reducible$async_qp$qp_STAR___37239$fn__37242.invoke(reducible.clj:108)"],
   :error_type :driver,
   :ex-data
   {:sql
    "-- Metabase:: userID: 343 queryType: MBQL queryHash: 8b8ab83dd2591b918e451daa5d01adf890e1442fcbcaec06da8f5e751cc3bbe9\n !!!!Here comes the select unterneath!!!!!!!",
    :params nil,
    :type :driver}}],
 :error_type :driver,
 :json_query
 {:constraints {:max-results 10000, :max-results-bare-rows 2000},
  :type :query,
  :middleware {:js-int-to-string? true},
  :database 7,
  :query
  {:source-table 200883,
   :fields
   [[:field-id 4387070]
    [:field-id 4387072]
    [:field-id 4387076]
    [:field-id 4387073]
    [:field-id 4387078]
    [:field-id 4387074]
    [:field-id 4387061]
    [:field-id 4387064]
    [:field-id 4387063]
    [:field-id 4387077]
    [:field-id 4387067]
    [:field-id 4387075]
    [:field-id 4387071]
    [:field-id 4387079]
    [:field-id 4387068]
    [:field-id 4387069]
    [:field-id 4387065]
    [:field-id 4387062]
    [:field-id 4387066]]},
  :parameters [],
  :async? true,
  :cache-ttl 4},
 :native
 {:query
  "!!!!!Here comes the select from my message see down !!!!!!!",
  :params nil},
 :status :failed,
 :class oracle.jdbc.OracleDatabaseException,
 :stacktrace
 ["oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:632)"
  "oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:562)"
  "oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1145)"
  "oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:726)"
  "oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:291)"
  "oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:492)"
  "oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:148)"
  "oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:928)"
  "oracle.jdbc.driver.OracleStatement.prepareDefineBufferAndExecute(OracleStatement.java:1158)"
  "oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1093)"
  "oracle.jdbc.driver.OracleStatement.executeSQLSelect(OracleStatement.java:1402)"
  "oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1285)"
  "oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3735)"
  "oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3847)"
  "oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1098)"
  "com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)"
  "--> driver.sql_jdbc.execute$fn__77724.invokeStatic(execute.clj:265)"
  "driver.sql_jdbc.execute$fn__77724.invoke(execute.clj:263)"
  "driver.sql_jdbc.execute$execute_reducible_query$fn__77803.invoke(execute.clj:391)"
  "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:390)"
  "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)"
  "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:384)"
  "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)"
  "driver.sql_jdbc$fn__79239.invokeStatic(sql_jdbc.clj:54)"
  "driver.sql_jdbc$fn__79239.invoke(sql_jdbc.clj:52)"
  "driver.oracle$eval576$fn__577.invoke(oracle.clj:310)"
  "query_processor.context$executef.invokeStatic(context.clj:59)"
  "query_processor.context$executef.invoke(context.clj:48)"
  "query_processor.context.default$default_runf.invokeStatic(default.clj:68)"
  "query_processor.context.default$default_runf.invoke(default.clj:66)"
  "query_processor.context$runf.invokeStatic(context.clj:45)"
  "query_processor.context$runf.invoke(context.clj:39)"
  "query_processor.reducible$pivot.invokeStatic(reducible.clj:34)"
  "query_processor.reducible$pivot.invoke(reducible.clj:31)"
  "query_processor.middleware.mbql_to_native$mbql__GT_native$fn__46455.invoke(mbql_to_native.clj:25)"
  "query_processor.middleware.check_features$check_features$fn__45707.invoke(check_features.clj:41)"
  "query_processor.middleware.limit$limit$fn__46441.invoke(limit.clj:37)"
  "query_processor.middleware.cache$run_query_with_cache.invokeStatic(cache.clj:184)"
  "query_processor.middleware.cache$run_query_with_cache.invoke(cache.clj:175)"
  "query_processor.middleware.cache$maybe_return_cached_results$fn__45171.invoke(cache.clj:210)"
  "query_processor.middleware.optimize_datetime_filters$optimize_datetime_filters$fn__46620.invoke(optimize_datetime_filters.clj:133)"
  "query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__44317.invoke(auto_parse_filter_values.clj:43)"
  "query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__40636.invoke(wrap_value_literals.clj:147)"
  "query_processor.middleware.annotate$add_column_info$fn__40499.invoke(annotate.clj:582)"
  "query_processor.middleware.permissions$check_query_permissions$fn__45582.invoke(permissions.clj:75)"
  "query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__47143.invoke(pre_alias_aggregations.clj:40)"
  "query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__45780.invoke(cumulative_aggregations.clj:60)"
  "query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__47456.invoke(resolve_joined_fields.clj:94)"
  "query_processor.middleware.resolve_joins$resolve_joins$fn__47761.invoke(resolve_joins.clj:178)"
  "query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__43911.invoke(add_implicit_joins.clj:181)"
  "query_processor.middleware.large_int_id$convert_id_to_string$fn__46416.invoke(large_int_id.clj:44)"
  "query_processor.middleware.format_rows$format_rows$fn__46396.invoke(format_rows.clj:74)"
  "query_processor.middleware.desugar$desugar$fn__45846.invoke(desugar.clj:21)"
  "query_processor.middleware.binning$update_binning_strategy$fn__44677.invoke(binning.clj:228)"
  "query_processor.middleware.resolve_fields$resolve_fields$fn__45389.invoke(resolve_fields.clj:24)"
  "query_processor.middleware.add_dimension_projections$add_remapping$fn__43541.invoke(add_dimension_projections.clj:316)"
  "query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__43772.invoke(add_implicit_clauses.clj:146)"
  "query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__48191.invoke(upgrade_field_literals.clj:45)"
  "query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__44064.invoke(add_source_metadata.clj:122)"
  "query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__47340.invoke(reconcile_breakout_and_order_by_bucketing.clj:97)"
  "query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__44264.invoke(auto_bucket_datetimes.clj:139)"
  "query_processor.middleware.resolve_source_table$resolve_source_tables$fn__45436.invoke(resolve_source_table.clj:45)"
  "query_processor.middleware.parameters$substitute_parameters$fn__47125.invoke(parameters.clj:111)"
  "query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__45488.invoke(resolve_referenced.clj:79)"
  "query_processor.middleware.expand_macros$expand_macros$fn__46102.invoke(expand_macros.clj:155)"
  "query_processor.middleware.add_timezone_info$add_timezone_info$fn__44073.invoke(add_timezone_info.clj:15)"
  "query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__48127.invoke(splice_params_in_response.clj:32)"
  "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351$fn__47355.invoke(resolve_database_and_driver.clj:31)"
  "driver$do_with_driver.invokeStatic(driver.clj:60)"
  "driver$do_with_driver.invoke(driver.clj:56)"
  "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351.invoke(resolve_database_and_driver.clj:25)"
  "query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__46342.invoke(fetch_source_query.clj:274)"
  "query_processor.middleware.store$initialize_store$fn__48136$fn__48137.invoke(store.clj:11)"
  "query_processor.store$do_with_store.invokeStatic(store.clj:44)"
  "query_processor.store$do_with_store.invoke(store.clj:38)"
  "query_processor.middleware.store$initialize_store$fn__48136.invoke(store.clj:10)"
  "query_processor.middleware.validate$validate_query$fn__48198.invoke(validate.clj:10)"
  "query_processor.middleware.normalize_query$normalize$fn__46468.invoke(normalize_query.clj:22)"
  "query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__43929.invoke(add_rows_truncated.clj:35)"
  "query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__48112.invoke(results_metadata.clj:147)"
  "query_processor.middleware.constraints$add_default_userland_constraints$fn__45723.invoke(constraints.clj:42)"
  "query_processor.middleware.process_userland_query$process_userland_query$fn__47214.invoke(process_userland_query.clj:135)"
  "query_processor.middleware.catch_exceptions$catch_exceptions$fn__45666.invoke(catch_exceptions.clj:173)"
  "query_processor.reducible$async_qp$qp_STAR___37239$thunk__37240.invoke(reducible.clj:103)"
  "query_processor.reducible$async_qp$qp_STAR___37239$fn__37242.invoke(reducible.clj:108)"],
 :context :question,
 :error "ORA-00942: table or view does not exist\n",
 :row_count 0,
 :running_time 0,
 :preprocessed
 {:constraints {:max-results 10000, :max-results-bare-rows 2000},
  :type :query,
  :middleware {:js-int-to-string? true},
  :info
  {:executed-by 343,
   :context :question,
   :card-id 750,
   :query-hash
   [-117, -118, -72, 61, -46, 89, 27, -111, -114, 69, 29, -86, 93, 1, -83, -8, -112, -31, 68, 47, -53, -54, -20, 6,
    -38, -113, 94, 117, 28, -61, -69, -23]},
  :database 7,
  :query
  {:source-table 200883,
   :fields
   [[:field-id 4387070]
    [:field-id 4387072]
    [:field-id 4387076]
    [:field-id 4387073]
    [:field-id 4387078]
    [:field-id 4387074]
    [:field-id 4387061]
    [:field-id 4387064]
    [:field-id 4387063]
    [:field-id 4387077]
    [:field-id 4387067]
    [:field-id 4387075]
    [:field-id 4387071]
    [:field-id 4387079]
    [:field-id 4387068]
    [:field-id 4387069]
    [:field-id 4387065]
    [:field-id 4387062]
    [:field-id 4387066]],
   :limit 2000},
  :async? true,
  :cache-ttl 4},
 :data {:rows [], :cols []}}

2021-04-14 09:09:02,412 DEBUG middleware.log :: e[32mPOST /api/card/750/query 202 [ASYNC: completed] 720.9 ms (28 DB calls) App DB connections: 0/13 Jetty threads: 6/50 (1 idle, 0 queued) (126 total active threads) Queries in flight: 0 (0 queued)e[0m

Usually the "ORA-00942: table or view does not exist" error is a normal error when a view or a table was dropped and a rescan of the database is necessary. Then I took a look at the view I created I found out that the select has been somehow manipulated.
(N.B.: i changed the original schema name to USER_SCHEMA and the original view name to VIEW_ON_DATABASE; also column description has been changed).

This is the select which generates metabase, but as you can see it makes a select on a view called identifier_wzstuwxqt which is not existend. The select should happen on the view VIEW_ON_DATABASE.

SELECT
  *
FROM
  (
    SELECT
      "USER_SCHEMA"."VIEW_ON_DATABASE"."A"  AS "A",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."B"  AS "B",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."C"  AS "C",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."D"  AS "D",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."E"  AS "E",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."F"  AS "F",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."G"  AS "G",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."H"  AS "H",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."I"  AS "I",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."J"  AS "J",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."K"  AS "K",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."L"  AS "L",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."M"  AS "M",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."N"  AS "N",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."O"  AS "O",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."P"  AS "P",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."Q"  AS "Q",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."R"  AS "R",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."S"  AS "S"
    FROM
      "USER_SCHEMA"."identifier_wzstuwxqt"
  )
WHERE
  ROWNUM <= 1048575

Normally the select should look as follows:

SELECT
  *
FROM
  (
    SELECT
      "USER_SCHEMA"."VIEW_ON_DATABASE"."A"  AS "A",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."B"  AS "B",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."C"  AS "C",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."D"  AS "D",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."E"  AS "E",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."F"  AS "F",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."G"  AS "G",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."H"  AS "H",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."I"  AS "I",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."J"  AS "J",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."K"  AS "K",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."L"  AS "L",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."M"  AS "M",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."N"  AS "N",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."O"  AS "O",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."P"  AS "P",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."Q"  AS "Q",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."R"  AS "R",
      "USER_SCHEMA"."VIEW_ON_DATABASE"."S"  AS "S"
    FROM
      "USER_SCHEMA"."VIEW_ON_DATABASE"
  )
WHERE
  ROWNUM <= 1048575

After doing a rescan of the tables i get following errors. I didn't see any logs regarding the VIEW_ON_DATABASE in the logs strangely, but i do get a lot of other errors on other tables which are not working.

 2021-04-14 09:07:35,488 WARN sync.util :: Error fingerprinting Table 81,268 'ANOTHER_USER_SCHEMA.TOAD_PLAN_TABLE'
clojure.lang.ExceptionInfo: Error executing query {:sql "-- Metabase\nSELECT * FROM (SELECT \"source\".\"substring6789\" AS \"substring6789\", \"source\".\"TIME\" AS \"TIME\", \"source\".\"substring6790\" AS \"substring6790\", \"source\".\"substring6791\" AS \"substring6791\", \"source\".\"OBJECT_INSTANCE\" AS \"OBJECT_INSTANCE\", \"source\".\"DEPTH\" AS \"DEPTH\", \"source\".\"substring6792\" AS \"substring6792\", \"source\".\"CPU_COST\" AS \"CPU_COST\", \"source\".\"substring6793\" AS \"substring6793\", \"source\".\"substring6794\" AS \"substring6794\", \"source\".\"substring6795\" AS \"substring6795\", \"source\".\"substring6796\" AS \"substring6796\", \"source\".\"substring6797\" AS \"substring6797\", \"source\".\"substring6798\" AS \"substring6798\", \"source\".\"TEMP_SPACE\" AS \"TEMP_SPACE\", \"source\".\"COST\" AS \"COST\", \"source\".\"substring6799\" AS \"substring6799\", \"source\".\"substring6800\" AS \"substring6800\", \"source\".\"substring6801\" AS \"substring6801\", \"source\".\"BYTES\" AS \"BYTES\", \"source\".\"substring6802\" AS \"substring6802\", \"source\".\"TIMESTAMP\" AS \"TIMESTAMP\", \"source\".\"PLAN_ID\" AS \"PLAN_ID\", \"source\".\"IO_COST\" AS \"IO_COST\", \"source\".\"POSITION\" AS \"POSITION\", \"source\".\"substring6803\" AS \"substring6803\", \"source\".\"substring6804\" AS \"substring6804\", \"source\".\"substring6805\" AS \"substring6805\", \"source\".\"substring6806\" AS \"substring6806\", \"source\".\"PARTITION_ID\" AS \"PARTITION_ID\", \"source\".\"substring6807\" AS \"substring6807\", \"source\".\"PARENT_ID\" AS \"PARENT_ID\", \"source\".\"SEARCH_COLUMNS\" AS \"SEARCH_COLUMNS\", \"source\".\"CARDINALITY\" AS \"CARDINALITY\", \"source\".\"substring6808\" AS \"substring6808\" FROM (SELECT \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PARTITION_START\" AS \"PARTITION_START\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PARTITION_STOP\" AS \"PARTITION_STOP\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_NODE\" AS \"OBJECT_NODE\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OTHER_TAG\" AS \"OTHER_TAG\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OPTIONS\" AS \"OPTIONS\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PROJECTION\" AS \"PROJECTION\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_TYPE\" AS \"OBJECT_TYPE\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"DISTRIBUTION\" AS \"DISTRIBUTION\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OTHER_XML\" AS \"OTHER_XML\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_OWNER\" AS \"OBJECT_OWNER\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OPERATION\" AS \"OPERATION\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OTHER\" AS \"OTHER\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"REMARKS\" AS \"REMARKS\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OPTIMIZER\" AS \"OPTIMIZER\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"ACCESS_PREDICATES\" AS \"ACCESS_PREDICATES\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_ALIAS\" AS \"OBJECT_ALIAS\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"QBLOCK_NAME\" AS \"QBLOCK_NAME\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"FILTER_PREDICATES\" AS \"FILTER_PREDICATES\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"STATEMENT_ID\" AS \"STATEMENT_ID\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_NAME\" AS \"OBJECT_NAME\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_ALIAS\", 1, 1234) AS \"substring6789\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"TIME\" AS \"TIME\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"REMARKS\", 1, 1234) AS \"substring6790\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_TYPE\", 1, 1234) AS \"substring6791\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_INSTANCE\" AS \"OBJECT_INSTANCE\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"DEPTH\" AS \"DEPTH\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_NODE\", 1, 1234) AS \"substring6792\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"CPU_COST\" AS \"CPU_COST\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PARTITION_START\", 1, 1234) AS \"substring6793\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OTHER_TAG\", 1, 1234) AS \"substring6794\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_OWNER\", 1, 1234) AS \"substring6795\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OBJECT_NAME\", 1, 1234) AS \"substring6796\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"STATEMENT_ID\", 1, 1234) AS \"substring6797\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PROJECTION\", 1, 1234) AS \"substring6798\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"TEMP_SPACE\" AS \"TEMP_SPACE\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"COST\" AS \"COST\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PARTITION_STOP\", 1, 1234) AS \"substring6799\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OTHER_XML\", 1, 1234) AS \"substring6800\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"QBLOCK_NAME\", 1, 1234) AS \"substring6801\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"BYTES\" AS \"BYTES\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"FILTER_PREDICATES\", 1, 1234) AS \"substring6802\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"TIMESTAMP\" AS \"TIMESTAMP\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PLAN_ID\" AS \"PLAN_ID\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"IO_COST\" AS \"IO_COST\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"POSITION\" AS \"POSITION\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OPTIONS\", 1, 1234) AS \"substring6803\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OPTIMIZER\", 1, 1234) AS \"substring6804\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OPERATION\", 1, 1234) AS \"substring6805\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"ACCESS_PREDICATES\", 1, 1234) AS \"substring6806\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PARTITION_ID\" AS \"PARTITION_ID\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"DISTRIBUTION\", 1, 1234) AS \"substring6807\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"PARENT_ID\" AS \"PARENT_ID\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"SEARCH_COLUMNS\" AS \"SEARCH_COLUMNS\", \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"CARDINALITY\" AS \"CARDINALITY\", substr(\"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\".\"OTHER\", 1, 1234) AS \"substring6808\" FROM \"ANOTHER_USER_SCHEMA\".\"TOAD_PLAN_TABLE\") \"source\") WHERE rownum <= 10000", :params nil, :type :driver}
	at metabase.driver.sql_jdbc.execute$execute_reducible_query$fn__77803.invoke(execute.clj:393)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:390)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:384)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)
	at metabase.driver.sql_jdbc$fn__79239.invokeStatic(sql_jdbc.clj:54)
	at metabase.driver.sql_jdbc$fn__79239.invoke(sql_jdbc.clj:52)
	at metabase.driver.oracle$eval576$fn__577.invoke(oracle.clj:310)
	at clojure.lang.MultiFn.invoke(MultiFn.java:244)
	at metabase.query_processor.context$executef.invokeStatic(context.clj:59)
	at metabase.query_processor.context$executef.invoke(context.clj:48)
	at metabase.query_processor.context.default$default_runf.invokeStatic(default.clj:68)
	at metabase.query_processor.context.default$default_runf.invoke(default.clj:66)
	at metabase.query_processor.context$runf.invokeStatic(context.clj:45)
	at metabase.query_processor.context$runf.invoke(context.clj:39)
	at metabase.query_processor.reducible$pivot.invokeStatic(reducible.clj:34)
	at metabase.query_processor.reducible$pivot.invoke(reducible.clj:31)
	at metabase.query_processor.middleware.mbql_to_native$mbql__GT_native$fn__46455.invoke(mbql_to_native.clj:25)
	at metabase.query_processor.middleware.check_features$check_features$fn__45707.invoke(check_features.clj:41)
	at metabase.query_processor.middleware.limit$limit$fn__46441.invoke(limit.clj:37)
	at metabase.query_processor.middleware.cache$maybe_return_cached_results$fn__45171.invoke(cache.clj:211)
	at metabase.query_processor.middleware.optimize_datetime_filters$optimize_datetime_filters$fn__46620.invoke(optimize_datetime_filters.clj:133)
	at metabase.query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__44317.invoke(auto_parse_filter_values.clj:43)
	at metabase.query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__40636.invoke(wrap_value_literals.clj:147)
	at metabase.query_processor.middleware.annotate$add_column_info$fn__40499.invoke(annotate.clj:582)
	at metabase.query_processor.middleware.permissions$check_query_permissions$fn__45582.invoke(permissions.clj:75)
	at metabase.query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__47143.invoke(pre_alias_aggregations.clj:40)
	at metabase.query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__45780.invoke(cumulative_aggregations.clj:60)
	at metabase.query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__47456.invoke(resolve_joined_fields.clj:94)
	at metabase.query_processor.middleware.resolve_joins$resolve_joins$fn__47761.invoke(resolve_joins.clj:178)
	at metabase.query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__43911.invoke(add_implicit_joins.clj:181)
	at metabase.query_processor.middleware.large_int_id$convert_id_to_string$fn__46416.invoke(large_int_id.clj:44)
	at metabase.query_processor.middleware.format_rows$format_rows$fn__46396.invoke(format_rows.clj:74)
	at metabase.query_processor.middleware.desugar$desugar$fn__45846.invoke(desugar.clj:21)
	at metabase.query_processor.middleware.binning$update_binning_strategy$fn__44677.invoke(binning.clj:228)
	at metabase.query_processor.middleware.resolve_fields$resolve_fields$fn__45389.invoke(resolve_fields.clj:24)
	at metabase.query_processor.middleware.add_dimension_projections$add_remapping$fn__43541.invoke(add_dimension_projections.clj:316)
	at metabase.query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__43772.invoke(add_implicit_clauses.clj:146)
	at metabase.query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__48191.invoke(upgrade_field_literals.clj:45)
	at metabase.query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__44064.invoke(add_source_metadata.clj:122)
	at metabase.query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__47340.invoke(reconcile_breakout_and_order_by_bucketing.clj:97)
	at metabase.query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__44264.invoke(auto_bucket_datetimes.clj:139)
	at metabase.query_processor.middleware.resolve_source_table$resolve_source_tables$fn__45436.invoke(resolve_source_table.clj:45)
	at metabase.query_processor.middleware.parameters$substitute_parameters$fn__47125.invoke(parameters.clj:111)
	at metabase.query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__45488.invoke(resolve_referenced.clj:79)
	at metabase.query_processor.middleware.expand_macros$expand_macros$fn__46102.invoke(expand_macros.clj:155)
	at metabase.query_processor.middleware.add_timezone_info$add_timezone_info$fn__44073.invoke(add_timezone_info.clj:15)
	at metabase.query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__48127.invoke(splice_params_in_response.clj:32)
	at metabase.query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351$fn__47355.invoke(resolve_database_and_driver.clj:31)
	at metabase.driver$do_with_driver.invokeStatic(driver.clj:60)
	at metabase.driver$do_with_driver.invoke(driver.clj:56)
	at metabase.query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351.invoke(resolve_database_and_driver.clj:25)
	at metabase.query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__46342.invoke(fetch_source_query.clj:274)
	at metabase.query_processor.middleware.store$initialize_store$fn__48136$fn__48137.invoke(store.clj:11)
	at metabase.query_processor.store$do_with_store.invokeStatic(store.clj:42)
	at metabase.query_processor.store$do_with_store.invoke(store.clj:38)
	at metabase.query_processor.middleware.store$initialize_store$fn__48136.invoke(store.clj:10)
	at metabase.query_processor.middleware.validate$validate_query$fn__48198.invoke(validate.clj:10)
	at metabase.query_processor.middleware.normalize_query$normalize$fn__46468.invoke(normalize_query.clj:22)
	at metabase.query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__43929.invoke(add_rows_truncated.clj:35)
	at metabase.query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__48112.invoke(results_metadata.clj:143)
	at metabase.query_processor.reducible$async_qp$qp_STAR___37239$thunk__37240.invoke(reducible.clj:103)
	at metabase.query_processor.reducible$async_qp$qp_STAR___37239.invoke(reducible.clj:109)
	at metabase.query_processor.reducible$sync_qp$qp_STAR___37248$fn__37251.invoke(reducible.clj:135)
	at metabase.query_processor.reducible$sync_qp$qp_STAR___37248.invoke(reducible.clj:134)
	at clojure.lang.AFn.applyToHelper(AFn.java:156)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$apply.invoke(core.clj:660)
	at metabase.query_processor$process_query.invokeStatic(query_processor.clj:146)
	at metabase.query_processor$process_query.doInvoke(query_processor.clj:140)
	at clojure.lang.RestFn.invoke(RestFn.java:423)
	at clojure.lang.Var.invoke(Var.java:388)
	at metabase.db.metadata_queries$fn__59353$table_rows_sample__59362$fn__59365.invoke(metadata_queries.clj:144)
	at metabase.db.metadata_queries$fn__59353$table_rows_sample__59362.invoke(metadata_queries.clj:131)
	at metabase.sync.analyze.fingerprint$fn__59418$fingerprint_table_BANG___59423$fn__59424.invoke(fingerprint.clj:66)
	at metabase.sync.analyze.fingerprint$fn__59418$fingerprint_table_BANG___59423.invoke(fingerprint.clj:46)
	at metabase.sync.analyze.fingerprint$fn__59594$fingerprint_fields_BANG___59599$fn__59600$fn__59601.invoke(fingerprint.clj:180)
	at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:151)
	at metabase.sync.util$do_with_error_handling.invoke(util.clj:144)
	at metabase.sync.analyze.fingerprint$fn__59594$fingerprint_fields_BANG___59599$fn__59600.invoke(fingerprint.clj:178)
	at metabase.sync.analyze.fingerprint$fn__59594$fingerprint_fields_BANG___59599.invoke(fingerprint.clj:174)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59641$fn__59642$fn__59643.invoke(fingerprint.clj:204)
	at clojure.lang.PersistentVector.reduce(PersistentVector.java:343)
	at clojure.core$reduce.invokeStatic(core.clj:6827)
	at clojure.core$reduce.invoke(core.clj:6810)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59641$fn__59642.invoke(fingerprint.clj:200)
	at metabase.query_processor.store$do_with_store.invokeStatic(store.clj:44)
	at metabase.query_processor.store$do_with_store.invoke(store.clj:38)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59641.invoke(fingerprint.clj:197)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638.invoke(fingerprint.clj:186)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59639.invoke(fingerprint.clj:191)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638.invoke(fingerprint.clj:186)
	at metabase.sync.analyze.fingerprint$fn__59671$fingerprint_fields_for_db_BANG___59676$fn__59677.invoke(fingerprint.clj:218)
	at metabase.sync.analyze.fingerprint$fn__59671$fingerprint_fields_for_db_BANG___59676.invoke(fingerprint.clj:212)
	at metabase.sync.analyze$make_analyze_steps$fn__59828.invoke(analyze.clj:104)
	at clojure.lang.AFn.applyToHelper(AFn.java:154)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$apply.invoke(core.clj:660)
	at metabase.sync.util$fn__39205$run_step_with_metadata__39210$fn__39214$fn__39216.doInvoke(util.clj:352)
	at clojure.lang.RestFn.invoke(RestFn.java:397)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invokeStatic(util.clj:99)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invoke(util.clj:93)
	at metabase.sync.util$with_start_and_finish_debug_logging.invokeStatic(util.clj:116)
	at metabase.sync.util$with_start_and_finish_debug_logging.invoke(util.clj:113)
	at metabase.sync.util$fn__39205$run_step_with_metadata__39210$fn__39214.invoke(util.clj:347)
	at metabase.sync.util$fn__39205$run_step_with_metadata__39210.invoke(util.clj:342)
	at metabase.sync.util$fn__39396$run_sync_operation__39401$fn__39402$fn__39410.invoke(util.clj:441)
	at metabase.sync.util$fn__39396$run_sync_operation__39401$fn__39402.invoke(util.clj:439)
	at metabase.sync.util$fn__39396$run_sync_operation__39401.invoke(util.clj:433)
	at metabase.sync.analyze$fn__59840$analyze_db_BANG___59845$fn__59846$fn__59847.invoke(analyze.clj:121)
	at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:151)
	at metabase.sync.util$do_with_error_handling.invoke(util.clj:144)
	at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:147)
	at metabase.sync.util$do_with_error_handling.invoke(util.clj:144)
	at clojure.core$partial$fn__5839.invoke(core.clj:2623)
	at metabase.driver$fn__29103.invokeStatic(driver.clj:527)
	at metabase.driver$fn__29103.invoke(driver.clj:527)
	at clojure.lang.MultiFn.invoke(MultiFn.java:239)
	at metabase.sync.util$sync_in_context$fn__39117.invoke(util.clj:135)
	at metabase.sync.util$with_db_logging_disabled$fn__39114.invoke(util.clj:126)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invokeStatic(util.clj:99)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invoke(util.clj:93)
	at metabase.sync.util$with_start_and_finish_logging$fn__39103.invoke(util.clj:111)
	at metabase.sync.util$with_sync_events$fn__39098.invoke(util.clj:85)
	at metabase.sync.util$with_duplicate_ops_prevented$fn__39089.invoke(util.clj:64)
	at metabase.sync.util$do_sync_operation.invokeStatic(util.clj:169)
	at metabase.sync.util$do_sync_operation.invoke(util.clj:166)
	at metabase.sync.analyze$fn__59840$analyze_db_BANG___59845$fn__59846.invoke(analyze.clj:118)
	at metabase.sync.analyze$fn__59840$analyze_db_BANG___59845.invoke(analyze.clj:113)
	at metabase.api.database$fn__62373$fn__62375.invoke(database.clj:622)
	at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected CHAR got LONG

	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:628)
	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:562)
	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1145)
	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:726)
	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:291)
	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:492)
	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:148)
	at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:928)
	at oracle.jdbc.driver.OracleStatement.prepareDefineBufferAndExecute(OracleStatement.java:1158)
	at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1093)
	at oracle.jdbc.driver.OracleStatement.executeSQLSelect(OracleStatement.java:1402)
	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1285)
	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3735)
	at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3847)
	at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1098)
	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)
	at metabase.driver.sql_jdbc.execute$fn__77724.invokeStatic(execute.clj:265)
	at metabase.driver.sql_jdbc.execute$fn__77724.invoke(execute.clj:263)
	at clojure.lang.MultiFn.invoke(MultiFn.java:234)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query$fn__77803.invoke(execute.clj:391)
	... 137 more
Caused by: Error : 932, Position : 4919, Sql = -- Metabase

What i tried so far:

  • Upgrading the Oracle driver. --> --> Same error
  • Dropped the view and recreate it again --> Same error

All views have in common (more or less) that they are selecting data out of another database schema. (but I granted everything "with grant option" in oracle).

I would appreciate any help, Thanks a lot in advance.

Diagnostic info:

{
 "browser-info": {
   "language": "en",
   "platform": "Win32",
   "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
   "vendor": "Google Inc."
 },
 "system-info": {
   "file.encoding": "UTF-8",
   "java.runtime.name": "OpenJDK Runtime Environment",
   "java.runtime.version": "11.0.10+9",
   "java.vendor": "AdoptOpenJDK",
   "java.vendor.url": "https://adoptopenjdk.net/",
   "java.version": "11.0.10",
   "java.vm.name": "OpenJDK 64-Bit Server VM",
   "java.vm.version": "11.0.10+9",
   "os.name": "Linux",
   "os.version": "4.14.35-2025.403.3.el7uek.x86_64",
   "user.language": "en",
   "user.timezone": "GMT"
 },
 "metabase-info": {
   "databases": [
     "oracle",
     "mysql",
     "h2",
     "presto",
     "postgres",
     "firebird"
   ],
   "hosting-env": "unknown",
   "application-database": "postgres",
   "application-database-details": {
     "database": {
       "name": "PostgreSQL",
       "version": "11.9"
     },
     "jdbc-driver": {
       "name": "PostgreSQL JDBC Driver",
       "version": "42.2.18"
     }
   },
   "run-mode": "prod",
   "version": {
     "date": "2021-04-08",
     "tag": "v0.38.4",
     "branch": "release-x.38.x",
     "hash": "057b6bb"
   },
   "settings": {
     "report-timezone": "Europe/Berlin"
   }
 }
}

Hi @lst
I'm just going to use points, since this gets confusing otherwise.

  1. You're using 0.38.4, not 0.38.3, according to the Diagnostic Info.
  2. Which version of ojdbc8/11.jar are you using?
  3. I don't understand what you mean by (N.B.: i changed the original schema name to USER_SCHEMA and the original view name to VIEW_ON_DATABASE; also column description has been changed).
    If you have changed the database structure, then existing questions will stop working and need to be recreated (or have their metadata updated manually)
  4. There's a very big difference between "sync" and "scan" - sync is Metabase to understand the structure of your database, so it gets schema table and column information - scan if only used for dropdowns on filters.
  5. The fingerprint error throws this error: ORA-00932: inconsistent datatypes: expected CHAR got LONG

@flamber:
First of all, thanks a lot for putting the logs into quote (after a view seconds I posted here). You are faster then a rocket :slight_smile:
@1: yes you are right. We were using 0.38.3 until today and upgraded it today to 0.38.4
@2: We are/were using

ojdbc8.jar (Oracle Database 12.2.0.1) -> Certified with JDK 8; It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types. (SHA1 Checksum: 60f439fd01536508df32658d0a416c49ac6f07fb)
https://www.oracle.com/database/technologies/jdbc-ucp-122-downloads.html
ojdbc8.jar (Oracle Database 21c (21.1)) -> Certified with JDK8, JDK11, JDK12, JDK13, JDK14, and JDK15; Oracle JDBC driver except classes for NLS support in Oracle Object and Collection types. (5,040,465 bytes - SHA1: 50044485aea10afd7defeee8109c5195b4d3cae2)
https://www.oracle.com/database/technologies/appdev/jdbc-ucp-21-1-c-downloads.html

@3: What I meant with renaming is, that I renamed the SQL before putting it here in the community post. I didn't rename anything in the database (of metabase).

@4: I tried also a lot of combinations of "Discard saved field values", "Re-scan field values now" and "Sync database schema now". None of them worked.

@5: Sorry I attached the wrong error message. Here is an example message I get during sync/scan (but again, i don't get the error message for the view VIEW_ON_DATABASE) See underneath a error message for another view i get (it has the same error - Table or view does not exist).
@5.1: I checked now again if the view is listed under Admin > data model --> but strangely all views are available except the one I am having the error with. could it be, that the errors happening during sync are avoiding that the view (I am having the error with) to be synced?

Here the error message i get for another view during sync:

2021-04-14 13:45:15,570 WARN sync.util :: Error fingerprinting Table 81,211 'DEV.PUR_TEST_REPORT'
clojure.lang.ExceptionInfo: Error executing query {:sql "-- Metabase\nSELECT * FROM (SELECT \"source\".\"substring19184\" AS \"substring19184\", \"source\".\"substring19185\" AS \"substring19185\", \"source\".\"substring19186\" AS \"substring19186\", \"source\".\"substring19187\" AS \"substring19187\", \"source\".\"substring19188\" AS \"substring19188\", \"source\".\"substring19189\" AS \"substring19189\", \"source\".\"substring19190\" AS \"substring19190\", \"source\".\"substring19191\" AS \"substring19191\", \"source\".\"substring19192\" AS \"substring19192\", \"source\".\"substring19193\" AS \"substring19193\", \"source\".\"substring19194\" AS \"substring19194\", \"source\".\"substring19195\" AS \"substring19195\", \"source\".\"substring19196\" AS \"substring19196\", \"source\".\"substring19197\" AS \"substring19197\", \"source\".\"substring19198\" AS \"substring19198\", \"source\".\"substring19199\" AS \"substring19199\" FROM (SELECT \"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_POSTCODE\" AS \"SUPPLIER_POSTCODE\", \"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_DESCRIPTION\" AS \"SUPPLIER_DESCRIPTION\", \"DEV\".\"PUR_TEST_REPORT\".\"LINE_OF_BUSINESS\" AS \"LINE_OF_BUSINESS\", \"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_TYPE\" AS \"SUPPLIER_TYPE\", \"DEV\".\"PUR_TEST_REPORT\".\"LINE_OF_BUSINESS_DESCRIPTION\" AS \"LINE_OF_BUSINESS_DESCRIPTION\", \"DEV\".\"PUR_TEST_REPORT\".\"PAYMENT_CODE\" AS \"PAYMENT_CODE\", \"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_COUNTRY\" AS \"SUPPLIER_COUNTRY\", \"DEV\".\"PUR_TEST_REPORT\".\"CURRENCY\" AS \"CURRENCY\", \"DEV\".\"PUR_TEST_REPORT\".\"identifier_nrxswxxuwwy\" AS \"identifier_nrxswxxuwwy\", \"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_ADDRESS\" AS \"SUPPLIER_ADDRESS\", \"DEV\".\"PUR_TEST_REPORT\".\"ITEM\" AS \"ITEM\", \"DEV\".\"PUR_TEST_REPORT\".\"SITE\" AS \"SITE\", \"DEV\".\"PUR_TEST_REPORT\".\"PAYMENT_TEXT\" AS \"PAYMENT_TEXT\", \"DEV\".\"PUR_TEST_REPORT\".\"MASTER_LINE_OF_BUSINESS\" AS \"MASTER_LINE_OF_BUSINESS\", \"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER\" AS \"SUPPLIER\", \"DEV\".\"PUR_TEST_REPORT\".\"ITEM_DESCRIPTION\" AS \"ITEM_DESCRIPTION\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"MASTER_LINE_OF_BUSINESS\", 1, 1234) AS \"substring19184\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"PAYMENT_TEXT\", 1, 1234) AS \"substring19185\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"LINE_OF_BUSINESS\", 1, 1234) AS \"substring19186\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"SITE\", 1, 1234) AS \"substring19187\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_COUNTRY\", 1, 1234) AS \"substring19188\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_POSTCODE\", 1, 1234) AS \"substring19189\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"PAYMENT_CODE\", 1, 1234) AS \"substring19190\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"CURRENCY\", 1, 1234) AS \"substring19191\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER\", 1, 1234) AS \"substring19192\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_ADDRESS\", 1, 1234) AS \"substring19193\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_DESCRIPTION\", 1, 1234) AS \"substring19194\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"identifier_nrxswxxuwwy\", 1, 1234) AS \"substring19195\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"ITEM\", 1, 1234) AS \"substring19196\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"ITEM_DESCRIPTION\", 1, 1234) AS \"substring19197\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"SUPPLIER_TYPE\", 1, 1234) AS \"substring19198\", substr(\"DEV\".\"PUR_TEST_REPORT\".\"LINE_OF_BUSINESS_DESCRIPTION\", 1, 1234) AS \"substring19199\" FROM \"DEV\".\"PUR_TEST_REPORT\") \"source\") WHERE rownum <= 10000", :params nil, :type :driver}
	at metabase.driver.sql_jdbc.execute$execute_reducible_query$fn__77803.invoke(execute.clj:393)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:390)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:384)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:375)
	at metabase.driver.sql_jdbc$fn__79239.invokeStatic(sql_jdbc.clj:54)
	at metabase.driver.sql_jdbc$fn__79239.invoke(sql_jdbc.clj:52)
	at metabase.driver.oracle$eval576$fn__577.invoke(oracle.clj:310)
	at clojure.lang.MultiFn.invoke(MultiFn.java:244)
	at metabase.query_processor.context$executef.invokeStatic(context.clj:59)
	at metabase.query_processor.context$executef.invoke(context.clj:48)
	at metabase.query_processor.context.default$default_runf.invokeStatic(default.clj:68)
	at metabase.query_processor.context.default$default_runf.invoke(default.clj:66)
	at metabase.query_processor.context$runf.invokeStatic(context.clj:45)
	at metabase.query_processor.context$runf.invoke(context.clj:39)
	at metabase.query_processor.reducible$pivot.invokeStatic(reducible.clj:34)
	at metabase.query_processor.reducible$pivot.invoke(reducible.clj:31)
	at metabase.query_processor.middleware.mbql_to_native$mbql__GT_native$fn__46455.invoke(mbql_to_native.clj:25)
	at metabase.query_processor.middleware.check_features$check_features$fn__45707.invoke(check_features.clj:41)
	at metabase.query_processor.middleware.limit$limit$fn__46441.invoke(limit.clj:37)
	at metabase.query_processor.middleware.cache$maybe_return_cached_results$fn__45171.invoke(cache.clj:211)
	at metabase.query_processor.middleware.optimize_datetime_filters$optimize_datetime_filters$fn__46620.invoke(optimize_datetime_filters.clj:133)
	at metabase.query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__44317.invoke(auto_parse_filter_values.clj:43)
	at metabase.query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__40636.invoke(wrap_value_literals.clj:147)
	at metabase.query_processor.middleware.annotate$add_column_info$fn__40499.invoke(annotate.clj:582)
	at metabase.query_processor.middleware.permissions$check_query_permissions$fn__45582.invoke(permissions.clj:75)
	at metabase.query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__47143.invoke(pre_alias_aggregations.clj:40)
	at metabase.query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__45780.invoke(cumulative_aggregations.clj:60)
	at metabase.query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__47456.invoke(resolve_joined_fields.clj:94)
	at metabase.query_processor.middleware.resolve_joins$resolve_joins$fn__47761.invoke(resolve_joins.clj:178)
	at metabase.query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__43911.invoke(add_implicit_joins.clj:181)
	at metabase.query_processor.middleware.large_int_id$convert_id_to_string$fn__46416.invoke(large_int_id.clj:44)
	at metabase.query_processor.middleware.format_rows$format_rows$fn__46396.invoke(format_rows.clj:74)
	at metabase.query_processor.middleware.desugar$desugar$fn__45846.invoke(desugar.clj:21)
	at metabase.query_processor.middleware.binning$update_binning_strategy$fn__44677.invoke(binning.clj:228)
	at metabase.query_processor.middleware.resolve_fields$resolve_fields$fn__45389.invoke(resolve_fields.clj:24)
	at metabase.query_processor.middleware.add_dimension_projections$add_remapping$fn__43541.invoke(add_dimension_projections.clj:316)
	at metabase.query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__43772.invoke(add_implicit_clauses.clj:146)
	at metabase.query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__48191.invoke(upgrade_field_literals.clj:45)
	at metabase.query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__44064.invoke(add_source_metadata.clj:122)
	at metabase.query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__47340.invoke(reconcile_breakout_and_order_by_bucketing.clj:97)
	at metabase.query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__44264.invoke(auto_bucket_datetimes.clj:139)
	at metabase.query_processor.middleware.resolve_source_table$resolve_source_tables$fn__45436.invoke(resolve_source_table.clj:45)
	at metabase.query_processor.middleware.parameters$substitute_parameters$fn__47125.invoke(parameters.clj:111)
	at metabase.query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__45488.invoke(resolve_referenced.clj:79)
	at metabase.query_processor.middleware.expand_macros$expand_macros$fn__46102.invoke(expand_macros.clj:155)
	at metabase.query_processor.middleware.add_timezone_info$add_timezone_info$fn__44073.invoke(add_timezone_info.clj:15)
	at metabase.query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__48127.invoke(splice_params_in_response.clj:32)
	at metabase.query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351$fn__47355.invoke(resolve_database_and_driver.clj:31)
	at metabase.driver$do_with_driver.invokeStatic(driver.clj:60)
	at metabase.driver$do_with_driver.invoke(driver.clj:56)
	at metabase.query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__47351.invoke(resolve_database_and_driver.clj:25)
	at metabase.query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__46342.invoke(fetch_source_query.clj:274)
	at metabase.query_processor.middleware.store$initialize_store$fn__48136$fn__48137.invoke(store.clj:11)
	at metabase.query_processor.store$do_with_store.invokeStatic(store.clj:42)
	at metabase.query_processor.store$do_with_store.invoke(store.clj:38)
	at metabase.query_processor.middleware.store$initialize_store$fn__48136.invoke(store.clj:10)
	at metabase.query_processor.middleware.validate$validate_query$fn__48198.invoke(validate.clj:10)
	at metabase.query_processor.middleware.normalize_query$normalize$fn__46468.invoke(normalize_query.clj:22)
	at metabase.query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__43929.invoke(add_rows_truncated.clj:35)
	at metabase.query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__48112.invoke(results_metadata.clj:143)
	at metabase.query_processor.reducible$async_qp$qp_STAR___37239$thunk__37240.invoke(reducible.clj:103)
	at metabase.query_processor.reducible$async_qp$qp_STAR___37239.invoke(reducible.clj:109)
	at metabase.query_processor.reducible$sync_qp$qp_STAR___37248$fn__37251.invoke(reducible.clj:135)
	at metabase.query_processor.reducible$sync_qp$qp_STAR___37248.invoke(reducible.clj:134)
	at clojure.lang.AFn.applyToHelper(AFn.java:156)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$apply.invoke(core.clj:660)
	at metabase.query_processor$process_query.invokeStatic(query_processor.clj:146)
	at metabase.query_processor$process_query.doInvoke(query_processor.clj:140)
	at clojure.lang.RestFn.invoke(RestFn.java:423)
	at clojure.lang.Var.invoke(Var.java:388)
	at metabase.db.metadata_queries$fn__59353$table_rows_sample__59362$fn__59365.invoke(metadata_queries.clj:144)
	at metabase.db.metadata_queries$fn__59353$table_rows_sample__59362.invoke(metadata_queries.clj:131)
	at metabase.sync.analyze.fingerprint$fn__59418$fingerprint_table_BANG___59423$fn__59424.invoke(fingerprint.clj:66)
	at metabase.sync.analyze.fingerprint$fn__59418$fingerprint_table_BANG___59423.invoke(fingerprint.clj:46)
	at metabase.sync.analyze.fingerprint$fn__59594$fingerprint_fields_BANG___59599$fn__59600$fn__59601.invoke(fingerprint.clj:180)
	at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:151)
	at metabase.sync.util$do_with_error_handling.invoke(util.clj:144)
	at metabase.sync.analyze.fingerprint$fn__59594$fingerprint_fields_BANG___59599$fn__59600.invoke(fingerprint.clj:178)
	at metabase.sync.analyze.fingerprint$fn__59594$fingerprint_fields_BANG___59599.invoke(fingerprint.clj:174)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59641$fn__59642$fn__59643.invoke(fingerprint.clj:204)
	at clojure.lang.PersistentVector.reduce(PersistentVector.java:343)
	at clojure.core$reduce.invokeStatic(core.clj:6827)
	at clojure.core$reduce.invoke(core.clj:6810)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59641$fn__59642.invoke(fingerprint.clj:200)
	at metabase.query_processor.store$do_with_store.invokeStatic(store.clj:44)
	at metabase.query_processor.store$do_with_store.invoke(store.clj:38)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59641.invoke(fingerprint.clj:197)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638.invoke(fingerprint.clj:186)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638$fn__59639.invoke(fingerprint.clj:191)
	at metabase.sync.analyze.fingerprint$fn__59629$fingerprint_fields_for_db_BANG__STAR___59638.invoke(fingerprint.clj:186)
	at metabase.sync.analyze.fingerprint$fn__59671$fingerprint_fields_for_db_BANG___59676$fn__59677.invoke(fingerprint.clj:218)
	at metabase.sync.analyze.fingerprint$fn__59671$fingerprint_fields_for_db_BANG___59676.invoke(fingerprint.clj:212)
	at metabase.sync.analyze$make_analyze_steps$fn__59828.invoke(analyze.clj:104)
	at clojure.lang.AFn.applyToHelper(AFn.java:154)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$apply.invoke(core.clj:660)
	at metabase.sync.util$fn__39205$run_step_with_metadata__39210$fn__39214$fn__39216.doInvoke(util.clj:352)
	at clojure.lang.RestFn.invoke(RestFn.java:397)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invokeStatic(util.clj:99)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invoke(util.clj:93)
	at metabase.sync.util$with_start_and_finish_debug_logging.invokeStatic(util.clj:116)
	at metabase.sync.util$with_start_and_finish_debug_logging.invoke(util.clj:113)
	at metabase.sync.util$fn__39205$run_step_with_metadata__39210$fn__39214.invoke(util.clj:347)
	at metabase.sync.util$fn__39205$run_step_with_metadata__39210.invoke(util.clj:342)
	at metabase.sync.util$fn__39396$run_sync_operation__39401$fn__39402$fn__39410.invoke(util.clj:441)
	at metabase.sync.util$fn__39396$run_sync_operation__39401$fn__39402.invoke(util.clj:439)
	at metabase.sync.util$fn__39396$run_sync_operation__39401.invoke(util.clj:433)
	at metabase.sync.analyze$fn__59840$analyze_db_BANG___59845$fn__59846$fn__59847.invoke(analyze.clj:121)
	at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:151)
	at metabase.sync.util$do_with_error_handling.invoke(util.clj:144)
	at metabase.sync.util$do_with_error_handling.invokeStatic(util.clj:147)
	at metabase.sync.util$do_with_error_handling.invoke(util.clj:144)
	at clojure.core$partial$fn__5839.invoke(core.clj:2623)
	at metabase.driver$fn__29103.invokeStatic(driver.clj:527)
	at metabase.driver$fn__29103.invoke(driver.clj:527)
	at clojure.lang.MultiFn.invoke(MultiFn.java:239)
	at metabase.sync.util$sync_in_context$fn__39117.invoke(util.clj:135)
	at metabase.sync.util$with_db_logging_disabled$fn__39114.invoke(util.clj:126)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invokeStatic(util.clj:99)
	at metabase.sync.util$with_start_and_finish_logging_STAR_.invoke(util.clj:93)
	at metabase.sync.util$with_start_and_finish_logging$fn__39103.invoke(util.clj:111)
	at metabase.sync.util$with_sync_events$fn__39098.invoke(util.clj:85)
	at metabase.sync.util$with_duplicate_ops_prevented$fn__39089.invoke(util.clj:64)
	at metabase.sync.util$do_sync_operation.invokeStatic(util.clj:169)
	at metabase.sync.util$do_sync_operation.invoke(util.clj:166)
	at metabase.sync.analyze$fn__59840$analyze_db_BANG___59845$fn__59846.invoke(analyze.clj:118)
	at metabase.sync.analyze$fn__59840$analyze_db_BANG___59845.invoke(analyze.clj:113)
	at metabase.api.database$fn__62373$fn__62375.invoke(database.clj:622)
	at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "DEV"."PUR_TEST_REPORT"."identifier_nrxswxxuwwy": invalid identifier

	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:628)
	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:562)
	at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1145)
	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:726)
	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:291)
	at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:492)
	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:148)
	at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:928)
	at oracle.jdbc.driver.OracleStatement.prepareDefineBufferAndExecute(OracleStatement.java:1158)
	at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1093)
	at oracle.jdbc.driver.OracleStatement.executeSQLSelect(OracleStatement.java:1402)
	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1285)
	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3735)
	at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3847)
	at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1098)
	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)
	at metabase.driver.sql_jdbc.execute$fn__77724.invokeStatic(execute.clj:265)
	at metabase.driver.sql_jdbc.execute$fn__77724.invoke(execute.clj:263)
	at clojure.lang.MultiFn.invoke(MultiFn.java:234)
	at metabase.driver.sql_jdbc.execute$execute_reducible_query$fn__77803.invoke(execute.clj:391)
	... 137 more
Caused by: Error : 904, Position : 2794, Sql = -- Metabase
SELECT * FROM (SELECT "source"."substring19184" AS "substring19184", "source"."substring19185" AS "substring19185", "source"."substring19186" AS "substring19186", "source"."substring19187" AS "substring19187", "source"."substring19188" AS "substring19188", "source"."substring19189" AS "substring19189", "source"."substring19190" AS "substring19190", "source"."substring19191" AS "substring19191", "source"."substring19192" AS "substring19192", "source"."substring19193" AS "substring19193", "source"."substring19194" AS "substring19194", "source"."substring19195" AS "substring19195", "source"."substring19196" AS "substring19196", "source"."substring19197" AS "substring19197", "source"."substring19198" AS "substring19198", "source"."substring19199" AS "substring19199" FROM (SELECT "DEV"."PUR_TEST_REPORT"."SUPPLIER_POSTCODE" AS "SUPPLIER_POSTCODE", "DEV"."PUR_TEST_REPORT"."SUPPLIER_DESCRIPTION" AS "SUPPLIER_DESCRIPTION", "DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS" AS "LINE_OF_BUSINESS", "DEV"."PUR_TEST_REPORT"."SUPPLIER_TYPE" AS "SUPPLIER_TYPE", "DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS_DESCRIPTION" AS "LINE_OF_BUSINESS_DESCRIPTION", "DEV"."PUR_TEST_REPORT"."PAYMENT_CODE" AS "PAYMENT_CODE", "DEV"."PUR_TEST_REPORT"."SUPPLIER_COUNTRY" AS "SUPPLIER_COUNTRY", "DEV"."PUR_TEST_REPORT"."CURRENCY" AS "CURRENCY", "DEV"."PUR_TEST_REPORT"."identifier_nrxswxxuwwy" AS "identifier_nrxswxxuwwy", "DEV"."PUR_TEST_REPORT"."SUPPLIER_ADDRESS" AS "SUPPLIER_ADDRESS", "DEV"."PUR_TEST_REPORT"."ITEM" AS "ITEM", "DEV"."PUR_TEST_REPORT"."SITE" AS "SITE", "DEV"."PUR_TEST_REPORT"."PAYMENT_TEXT" AS "PAYMENT_TEXT", "DEV"."PUR_TEST_REPORT"."MASTER_LINE_OF_BUSINESS" AS "MASTER_LINE_OF_BUSINESS", "DEV"."PUR_TEST_REPORT"."SUPPLIER" AS "SUPPLIER", "DEV"."PUR_TEST_REPORT"."ITEM_DESCRIPTION" AS "ITEM_DESCRIPTION", substr("DEV"."PUR_TEST_REPORT"."MASTER_LINE_OF_BUSINESS", 1, 1234) AS "substring19184", substr("DEV"."PUR_TEST_REPORT"."PAYMENT_TEXT", 1, 1234) AS "substring19185", substr("DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS", 1, 1234) AS "substring19186", substr("DEV"."PUR_TEST_REPORT"."SITE", 1, 1234) AS "substring19187", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_COUNTRY", 1, 1234) AS "substring19188", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_POSTCODE", 1, 1234) AS "substring19189", substr("DEV"."PUR_TEST_REPORT"."PAYMENT_CODE", 1, 1234) AS "substring19190", substr("DEV"."PUR_TEST_REPORT"."CURRENCY", 1, 1234) AS "substring19191", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER", 1, 1234) AS "substring19192", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_ADDRESS", 1, 1234) AS "substring19193", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_DESCRIPTION", 1, 1234) AS "substring19194", substr("DEV"."PUR_TEST_REPORT"."identifier_nrxswxxuwwy", 1, 1234) AS "substring19195", substr("DEV"."PUR_TEST_REPORT"."ITEM", 1, 1234) AS "substring19196", substr("DEV"."PUR_TEST_REPORT"."ITEM_DESCRIPTION", 1, 1234) AS "substring19197", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_TYPE", 1, 1234) AS "substring19198", substr("DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS_DESCRIPTION", 1, 1234) AS "substring19199" FROM "DEV"."PUR_TEST_REPORT") "source") WHERE rownum <= 10000, OriginalSql = -- Metabase
SELECT * FROM (SELECT "source"."substring19184" AS "substring19184", "source"."substring19185" AS "substring19185", "source"."substring19186" AS "substring19186", "source"."substring19187" AS "substring19187", "source"."substring19188" AS "substring19188", "source"."substring19189" AS "substring19189", "source"."substring19190" AS "substring19190", "source"."substring19191" AS "substring19191", "source"."substring19192" AS "substring19192", "source"."substring19193" AS "substring19193", "source"."substring19194" AS "substring19194", "source"."substring19195" AS "substring19195", "source"."substring19196" AS "substring19196", "source"."substring19197" AS "substring19197", "source"."substring19198" AS "substring19198", "source"."substring19199" AS "substring19199" FROM (SELECT "DEV"."PUR_TEST_REPORT"."SUPPLIER_POSTCODE" AS "SUPPLIER_POSTCODE", "DEV"."PUR_TEST_REPORT"."SUPPLIER_DESCRIPTION" AS "SUPPLIER_DESCRIPTION", "DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS" AS "LINE_OF_BUSINESS", "DEV"."PUR_TEST_REPORT"."SUPPLIER_TYPE" AS "SUPPLIER_TYPE", "DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS_DESCRIPTION" AS "LINE_OF_BUSINESS_DESCRIPTION", "DEV"."PUR_TEST_REPORT"."PAYMENT_CODE" AS "PAYMENT_CODE", "DEV"."PUR_TEST_REPORT"."SUPPLIER_COUNTRY" AS "SUPPLIER_COUNTRY", "DEV"."PUR_TEST_REPORT"."CURRENCY" AS "CURRENCY", "DEV"."PUR_TEST_REPORT"."identifier_nrxswxxuwwy" AS "identifier_nrxswxxuwwy", "DEV"."PUR_TEST_REPORT"."SUPPLIER_ADDRESS" AS "SUPPLIER_ADDRESS", "DEV"."PUR_TEST_REPORT"."ITEM" AS "ITEM", "DEV"."PUR_TEST_REPORT"."SITE" AS "SITE", "DEV"."PUR_TEST_REPORT"."PAYMENT_TEXT" AS "PAYMENT_TEXT", "DEV"."PUR_TEST_REPORT"."MASTER_LINE_OF_BUSINESS" AS "MASTER_LINE_OF_BUSINESS", "DEV"."PUR_TEST_REPORT"."SUPPLIER" AS "SUPPLIER", "DEV"."PUR_TEST_REPORT"."ITEM_DESCRIPTION" AS "ITEM_DESCRIPTION", substr("DEV"."PUR_TEST_REPORT"."MASTER_LINE_OF_BUSINESS", 1, 1234) AS "substring19184", substr("DEV"."PUR_TEST_REPORT"."PAYMENT_TEXT", 1, 1234) AS "substring19185", substr("DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS", 1, 1234) AS "substring19186", substr("DEV"."PUR_TEST_REPORT"."SITE", 1, 1234) AS "substring19187", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_COUNTRY", 1, 1234) AS "substring19188", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_POSTCODE", 1, 1234) AS "substring19189", substr("DEV"."PUR_TEST_REPORT"."PAYMENT_CODE", 1, 1234) AS "substring19190", substr("DEV"."PUR_TEST_REPORT"."CURRENCY", 1, 1234) AS "substring19191", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER", 1, 1234) AS "substring19192", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_ADDRESS", 1, 1234) AS "substring19193", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_DESCRIPTION", 1, 1234) AS "substring19194", substr("DEV"."PUR_TEST_REPORT"."identifier_nrxswxxuwwy", 1, 1234) AS "substring19195", substr("DEV"."PUR_TEST_REPORT"."ITEM", 1, 1234) AS "substring19196", substr("DEV"."PUR_TEST_REPORT"."ITEM_DESCRIPTION", 1, 1234) AS "substring19197", substr("DEV"."PUR_TEST_REPORT"."SUPPLIER_TYPE", 1, 1234) AS "substring19198", substr("DEV"."PUR_TEST_REPORT"."LINE_OF_BUSINESS_DESCRIPTION", 1, 1234) AS "substring19199" FROM "DEV"."PUR_TEST_REPORT") "source") WHERE rownum <= 10000, Error Msg = ORA-00904: "DEV"."PUR_TEST_REPORT"."identifier_nrxswxxuwwy": invalid identifier

	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:632)
	... 156 more

@lst Okay, so I think the core issue is 5.1, so let's ignore all the others for now.

The sync errors with this during the fingerprint, which is part of the sync process:
ORA-00904: "DEV"."PUR_TEST_REPORT"."identifier_nrxswxxuwwy": invalid identifier

Let's try if we can get the sync working by enabling this in Admin > Databases > your-db:
"This is a large database, so let me choose when Metabase syncs and scans" = toggled ON
And Save, then refresh the browser page, and click "Sync database schema now", which should now only perform a sync without the fingerprinting.

@flamber:
This is already activated. Should i turn off an on, would this help?

Is this somewhere in the database? So I could change that value and the problem would be solved.

@lst You should not turn it off. We're trying to make the sync as light as possible.

Can you check the Metabase application database for any identifier_nrxswxxuwwy, since it seems like it might have been a column at some point, but perhaps it was removed and the sync just haven't picked that up for unknown reasons.
You should look in metabase_field - if you find it, then you can set active=false

1 Like

@flamber, i can't find this identifier_nrxswxxuwwy in the table metabase_field. Also in metabase_table I can't find it.

But what I found is, that the active flag is not set for the view on the database in table metabase_table.

The only thing I found, is that the view mentioned in my first posting is not set to active.

@lst There's too much going on. We need to focus on one thing at the time, since it's impossible for me to try to debug everything via a forum with a few logs and screenshots.

Metabase tries to do a fingerprint of the table PUR_TEST_REPORT (metabase_table.id=81211) using the fields it found during the sync (metabase_field.table_id=81211).

For some reason it has found a field during sync, which does not exist in the table, when it does a fingerprint. From the name, it seems like it might be something that Oracle returns for Views, which should be completely ignored, since it's an internal Oracle thing perhaps.

But since you only have this problem on a single View, then I'm guessing it's something to do with how that View is created.
Without a way for us to be able to reproduce this, it's going to be close to impossible to fix it.

@lst That took a while to figure out what was going on - I have created an issue about this:
https://github.com/metabase/metabase/issues/15978 - upvote by clicking :+1: on the first post