Invalid Table or Database View Causes Schema Error in ODBC DriverDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internalTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:0; } .sp td{ border-bottom: 1px solid; border-right: 1px solid; border-color:#E0E0E0; background-color: #ffffff; height: 20px; padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; } .sphr td{ border-right: 1px solid; border-bottom: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .5em; padding-bottom: .5em; padding-left: .5em; padding-right: .5em; height: 20px; } .title { color: #D1232B; font-weight:; font-size:25px; } .hd1{ color: #D1232B; font-weight:; font-size:18px; } .hd2{ color: #646464; font-weight:bold; font-size:16px; } .hd3{ color: #7a7a7a; font-weight:; font-size:16 px; text-decoration:; } .hd4{ color: #000000; font-weight:bold; font-size:14 px; text-decoration:; } --> Invalid Table or Database View Causes Schema Error in ODBC Driver ProblemAn invalid table or database view causes schema errors when using the ODBC driver with instances prior to the Geneva release. This issue produces the same symptoms as described in KB0595630: Resolving ODBC Driver schema, table, or column not found errors. SymptomsThe ODBC Driver returns one of the following errors in an instance prior to the Geneva release: ERROR [HY000] [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK SQL Engine]Exception retrieving tables schema: java.net.SocketTimeoutException: 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>/xmlstats.do 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 Cause The instance contains an invalid table or an invalid database view and when ODBC calls <table>?SCHEMA, it fails. ResolutionFirst, evaluate if the error is caused by an invalid table or an invalid database view. Navigate to <instance>.service-now.com?SCHEMA. If you do not receive valid XML, there is an issue with a table or database viewIf the XML is valid, review KB0595630 as that error produces the same symptomsIf you receive invalid XML, you must find out which table or database view is causing the error Modify the SchemaProcessor script include "writeTables" function. Change the following: while (gr.next()){ var tableName = gr.getValue('name'); if ( JSUtil.nil(tableName)) continue; Add two debugging lines (with //debugging) as follows: var index = 0; // debugging while (gr.next()){ var tableName = gr.getValue('name'); if ( JSUtil.nil(tableName)) continue; gs.log('Processing table ' + index++ + ' with name=' + tableName); // debugging Navigate to <instance>.service-now.com?SCHEMA again.Navigate to System Logs > Script Log Statements.Filter the list to include only Message values that contain 'Processing table' and sort by the Message field.Use the log statements to identify the table that was logged last. This is the table causing the issue.Modify the SchemaProcessor script include to exclude any invalid tables or database views.Repeat steps 2 - 6 until <instance>.service-now.com?SCHEMA returns a valid XML document.Remove any debugging statements from the SchemaProcessor script include.