Skip to main content

SQL error detail messages, ids, and arguments

The SQLError class represents various errors that can occur while working with an Adobe AIR local SQL database. For any given exception, the SQLError instance has a details property containing an English error message. In addition, each error message has an associated unique identifier that is available in the SQLError object's detailID property. Using the detailID property, an application can identify the specific details error message. The application can provide alternate text for the end user in the language of his or her locale. The argument values in the detailArguments array can be substituted in the appropriate position in the error message string. This is useful for applications that display the details property error message for an error directly to end users in a specific locale.

The following table contains a list of the detailID values and the associated English error message text. Placeholder text in the messages indicates where detailArguments values are substituted in by the runtime. This list can be used as a source for localizing the error messages that can occur in SQL database operations.

SQLError detailIDEnglish error detail message and parameters
1001Connection closed.
1102Database must be open to perform this operation.
1003%s [,|and %s] parameter name(s) found in parameters property but not in the SQL specified.
1004Mismatch in parameter count. Found %d in SQL specified and %d value(s) set in parameters property. Expecting values for %s [,|and %s].
1005Auto compact could not be turned on.
1006The pageSize value could not be set.
1007The schema object with name '%s' of type '%s' in database '%s' was not found.
1008The schema object with name '%s' in database '%s' was not found.
1009No schema objects with type '%s' in database '%s' were found.
1010No schema objects in database '%s' were found.
2001Parser stack overflow.
2002Too many arguments on function '%s'
2003near '%s': syntax error
2004there is already another table or index with this name: '%s'
2005PRAGMA is not allowed in SQL.
2006Not a writable directory.
2007Unknown or unsupported join type: '%s %s %s'
2008RIGHT and FULL OUTER JOINs are not currently supported.
2009A NATURAL join may not have an ON or USING clause.
2010Cannot have both ON and USING clauses in the same join.
2011Cannot join using column '%s' - column not present in both tables.
2012Only a single result allowed for a SELECT that is part of an expression.
2013No such table: '[%s.]%s'
2014No tables specified.
2015Too many columns in result set|too many columns on '%s'.
2016%s ORDER|GROUP BY term out of range - should be between 1 and %d
2017Too many terms in ORDER BY clause.
2018%s ORDER BY term out of range - should be between 1 and %d.
2019%r ORDER BY term does not match any column in the result set.
2020ORDER BY clause should come after '%s' not before.
2021LIMIT clause should come after '%s' not before.
2022SELECTs to the left and right of '%s' do not have the same number of result columns.
2023A GROUP BY clause is required before HAVING.
2024Aggregate functions are not allowed in the GROUP BY clause.
2025DISTINCT in aggregate must be followed by an expression.
2026Too many terms in compound SELECT.
2027Too many terms in ORDER|GROUP BY clause
2028Temporary trigger may not have qualified name
2030Trigger '%s' already exists
2032Cannot create BEFORE|AFTER trigger on view: '%s'.
2033Cannot create INSTEAD OF trigger on table: '%s'.
2034No such trigger: '%s'
2035Recursive triggers not supported ('%s').
2036No such column: %s[.%s[.%s]]
2037VACUUM is not allowed from SQL.
2043Table '%s': indexing function returned an invalid plan.
2044At most %d tables in a join.
2046Cannot add a PRIMARY KEY column.
2047Cannot add a UNIQUE column.
2048Cannot add a NOT NULL column with default value NULL.
2049Cannot add a column with non-constant default.
2050Cannot add a column to a view.
2051ANALYZE is not allowed in SQL.
2052Invalid name: '%s'
2053ATTACH is not allowed from SQL.
2054%s '%s' cannot reference objects in database '%s'
2055Access to '[%s.]%s.%s' is prohibited.
2056Not authorized.
2058No such view: '[%s.]%s'
2060Temporary table name must be unqualified.
2061Table '%s' already exists.
2062There is already an index named: '%s'
2064Duplicate column name: '%s'
2065Table '%s' has more than one primary key.
2066AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY
2067No such collation sequence: '%s'
2068Parameters are not allowed in views.
2069View '%s' is circularly defined.
2070Table '%s' may not be dropped.
2071Use DROP VIEW to delete view '%s'
2072Use DROP TABLE to delete table '%s'
2073Foreign key on '%s' should reference only one column of table '%s'
2074Number of columns in foreign key does not match the number of columns in the referenced table.
2075Unknown column '%s' in foreign key definition.
2076Table '%s' may not be indexed.
2077Views may not be indexed.
2080Conflicting ON CONFLICT clauses specified.
2081No such index: '%s'
2082Index associated with UNIQUE or PRIMARY KEY constraint cannot be dropped.
2083BEGIN is not allowed in SQL.
2084COMMIT is not allowed in SQL.
2085ROLLBACK is not allowed in SQL.
2086Unable to open a temporary database file for storing temporary tables.
2087Unable to identify the object to be reindexed.
2088Table '%s' may not be modified.
2089Cannot modify '%s' because it is a view.
2090Variable number must be between ?0 and ?%d\<
2092Misuse of aliased aggregate '%s'
2093Ambiguous column name: '[%s.[%s.]]%s'
2094No such function: '%s'
2095Wrong number of arguments to function '%s'
2096Subqueries prohibited in CHECK constraints.
2097Parameters prohibited in CHECK constraints.
2098Expression tree is too large (maximum depth %d)
2099RAISE() may only be used within a trigger-program
2100Table '%s' has %d columns but %d values were supplied
2101Database schema is locked: '%s'
2102Statement too long.
2103Unable to delete/modify collation sequence due to active statements
2104Too many attached databases - max %d
2105Cannot ATTACH database within transaction.
2106Database '%s' is already in use.
2108Attached databases must use the same text encoding as main database.
2200Out of memory.
2201Unable to open database.
2202Cannot DETACH database within transaction.
2203Cannot detach database: '%s'
2204Database '%s' is locked.
2205Unable to acquire a read lock on the database.
2206[column|columns] '%s'[,'%s'] are not [unique|is] not unique.
2207Malformed database schema.
2208Unsupported file format.
2209Unrecognized token: '%s'
2300Could not convert text value to numeric value.
2301Could not convert string value to date.
2302Could not convert floating point value to integer without loss of data.
2303Cannot rollback transaction - SQL statements in progress.
2304Cannot commit transaction - SQL statements in progress.
2305Database table is locked: '%s'
2306Read-only table.
2307String or blob too big.
2309Cannot open indexed column for writing.
2400Cannot open value of type %s.
2401No such rowid: %s\<
2402Object name reserved for internal use: '%s'
2403View '%s' may not be altered.
2404Default value of column '%s' is not constant.
2405Not authorized to use function '%s'
2406Misuse of aggregate function '%s'
2407Misuse of aggregate: '%s'
2408No such database: '%s'
2409Table '%s' has no column named '%s'
2501No such module: '%s'
2508No such savepoint: '%s'
2510Cannot rollback - no transaction is active.
2511Cannot commit - no transaction is active.