Resolving ODBC Driver schema, table, or column not found errors.


The ODBC Driver may return an error stating that the schema, table, or column were not found
The ODBC Driver returns one of the following errors:
  • ERROR [HY000] [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK SQL Engine]Exception retrieving tables schema: Read timed out[1020]
  • ERROR [42S02] [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK SQL Engine]Base table:<a_table> not found.[10129]
  • ERROR [HY000] [SN][ODBC ServiceNow driver][OpenAccess SDK SQL Engine]Cannot create schema.Cannot retrieve a DB schema. Please run <instance>?SCHEMA in your browser and try again. Also make sure that the table descriptor cache can hold all your tables and DB views. You can check the table descriptor stats runing <instance>/ in your browser.[1050]
  • ERROR [HY000] [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK SQL Engine]Could not find any column information for table:<a_table>.[10131]
  • Any other error that states the schema, table, or column was not found. 


The ODBC Driver cannot retrieve the database schema from the instance due to the table descriptor cache being insufficient. The table descriptor cache is an in-memory object that stores information about database schema including the names and field names of all tables.

Another cause can be that the Data Source does not have the instance URL defined in the "Custom Properties".


Check if the table descriptor cache is large enough to hold all tables and database views. As an administrator, follow these steps:

  1. In your browser, navigate to <instance>
  2. Look for the entry syscache_tabledescriptor.
  3. Note the max_entries attribute.
  4. Navigate to System Definition > Tables and note the number of records.
  5. Navigate to System Definition > Database Views and note the number of records.
  6. If the value of the max_entries attribute is lower than the number of tables and database views, increase the value of the property glide.cache.size.syscache_tabledescriptor to a value greater than the number of tables + the number of database views.
  7. Open the ODBC Data source Administrator -> System DSN tab -> General -> Be sure the "Custom Properties" point to the instance URL: url=https://<instance_name> as in this screen shot - after setting this make a new connection to the data source and try the query again: