SAP HANA Reference - SQL Error Codes
SAP HANA Reference - SQL Error Codes
The following table lists error codes displayed by SAP HANA database and their descriptions.
Error
Description
Code
1 General warning
2 General error
3 Fatal error
4 Cannot allocate enough memory
5 Initialization error
6 Invalid data
7 Feature not supported
8 Invalid argument
9 Index out of bounds
10 Invalid username or password
11 Invalid state
12 Cannot open file
13 Cannot create/write file
14 Cannot allocate enough disk space
15 Cannot find file
16 Statement retry
17 Metadata schema version incompatible between database and executable file
18 Service shutting down
19 Invalid license
128 Transaction error
129 Transaction rolled back by an internal error
130 Transaction rolled back by integrity constraint violation
131 Transaction rolled back by lock wait timeout
132 Transaction rolled back due to unavailable resource
133 Transaction rolled back by detected deadlock
134 Failure in accessing checkpoint file
135 Failure in accessing anchor file
136 Failure in accessing log file
137 Failure in accessing archive file
138 Transaction serialization failure
139 Current operation cancelled by request and transaction rolled back
140 Invalid write-transaction identifier
141 Failure in accessing invisible log file
142 Exceed max num of concurrent transactions
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 1/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
143 Transaction serialization failure until timeout expires
144 Transaction rollback, unique constraint violated
145 Transaction distribution work failure
146 Resource busy and acquire with NOWAIT specified
147 Inconsistency between data and log
148 Transaction start is blocked until Master_Restart finishes
149 Distributed transaction commit failure
150 Statement cancelled due to old snapshot
256 SQL processing error
257 SQL syntax error
258 Insufficient privilege
259 Invalid table name
260 Invalid column name
261 Invalid index name
262 Invalid query name
263 Invalid alias name
264 Invalid datatype
265 Expression missing
266 Inconsistent datatype
267 Specified length too long for its datatype
268 Column ambiguously defined
269 Too many values
270 Not enough values
271 Duplicate alias
272 Duplicate column name
273 Not a single character string
274 Inserted value too large for column
275 Aggregate function not allowed
276 Missing aggregation or grouping
277 Not a GROUP BY expression
278 Nested group function without GROUP BY
279 Group function is nested
280 ORDER BY item must be the number of a SELECT-list
281 Outer join not allowed in operand of OR or IN
282 Two tables cannot be outer-joined to each other
283 A table may be outer joined to at most one other table
284 Join field does not match
285 Invalid join condition
286 Identifier is too long
287 Cannot insert NULL or update to NULL
288 Cannot use duplicate table name
289 Cannot use duplicate index name
290 Cannot use duplicate query name
291 Argument identifier must be positive
292 wrong number of arguments
293 Argument type mismatch
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 2/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 3/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
340 Not all variables bound
341 Numeric underflow
342 Collation conflict
343 Invalid collate name
344 Parse error in data loader
345 Not a replication table
346 Invalid replication ID
347 Invalid option in monitor
348 Invalid datetime format
349 Cannot CREATE UNIQUE INDEX
350 Cannot drop columns in the primary-key column list
351 Column is referenced in a multi-column constraint
352 Cannot create unique index on CDX table
353 Update log group name already exists
354 Invalid update log group name
355 The base table of the update log table must have a primary key
356 Exceed maximum number of update log group
357 The base table already has a update log table
358 Update log table can not have a update log table
359 Concatenated string is too long
360 View WITH CHECK OPTION where-clause violation
361 Data manipulation operation not legal on this view
362 Invalid schema name
363 Number of index columns exceeds its maximum
364 Invalid partial key size
365 No matching unique or primary key for this column list
366 Referenced table does not have a primary key
367 Number of referencing columns must match referenced columns
368 Unique constraint not allowed on temporary table
369 Exceed maximum view depth limit
370 Cannot perform DIRECT INSERT operation on table with unique indexes
371 Invalid XML document
372 Invalid XPATH
373 Invalid XML duration value
374 Invalid XML function usage
375 Invalid XML index operation
376 Python stored procedure error
377 JIT operation error
378 Invalid column view
379 Table schema mismatch
380 Fail to change run level
381 Fail to restart
382 Fail to collect all version garbage
383 Invalid identifier
384 Constant string is too long
385 Could not restore session
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 4/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
386 Cannot use duplicate schema name
387 Table ambiguously defined
388 Role already exists
389 Invalid role name
390 Invalid user type
391 Invalidated view
392 Can't assign cyclic role
393 Roles must not receive a privilege with grant option
394 Error revoking role
395 Invalid user-defined type name
396 Cannot use duplicate user-defined type name
397 Invalid object name
398 Cannot have more than one order by
399 Role tree too deep
400 Primary key not allowed on insert-only table
401 Unique constraint not allowed on insert-only table
402 The user was already dropped before query execution
403 Internal error
404 Invalid (non-existent) structured privilege name
405 Cannot use duplicate structured privilege name
406 INSERT, UPDATE and UPSERT are disallowed on the generated field
407 Invalid date format
408 Password or parameter required for user
409 Multiple values for a parameter not supported
410 Invalid privilege namespace
411 Invalid table type
412 Invalid password layout
413 Last n passwords can not be reused
414 User is forced to change password
415 User is deactivated
416 User is locked
417 Can't drop without CASCADE specification
418 Invalid view query for creation
419 Can't drop with RESTRICT specification.
420 Password change currently not allowed
421 Cannot create fulltext index
422 Privileges must be either all SQL or all from one namespace
423 LiveCache error
424 Invalid name of package
425 Duplicate package name
426 Number of columns mismatch
427 Cannot reserve index ID any more
428 Invalid query plan ID
429 Integrity check failed
430 Invalidated procedure
431 User's password will expire within few days
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 5/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
432 This syntax has been deprecated and will be removed in next release
433 Null value found
434 Invalid object ID
435 Invalid expression
436 Could not set system license
437 Only commands for license handling are allowed in current state
438 Invalid user parameter value
439 Composite error
440 Table type conversion error
441 This feature has been deprecated and will be removed in next release
442 Number of columns exceeds its maximum
443 Invalid calculation scenario name
444 Package manager error
512 Replication error
513 Cannot execute DDL statement on replication table while replicating
514 Failure in accessing anchor file
515 Failure in accessing log file
516 Replication table has not conflict report table
517 Conflict report table already enabled
518 Conflict report table already disabled
576 API error
577 Cursor type of forward is not allowed
578 Invalid statement
579 Exceed maximum batch size
580 Server rejected the connection(protocol version mismatch)
581 This function can be called only in the case of single statement
582 This query does not have result set
583 Connection does not exist
584 No more lob data
585 Operation is not permitted
586 Invalid parameter is received from server
587 Result set is currently invalid
588 Next() is not called for this result set
589 Too many parameters are set
590 Some paramters are missing
591 Internal error
592 Not supported type conversion
593 Remote-only function
594 No more result row in result set
595 Specified parameter is not output parameter
596 LOB streaming is not permitted in auto-commit mode
597 Session context error
598 Failed to execute the external statement
599 Session layer is not initialized yet
600 Failed routed execution
601 Too many session variables are set
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 6/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 7/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 8/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 9/10
12/14/21, 8:05 PM SAP HANA Reference: SQL Error Codes
sap.optimieren.de/hana/hana/html/_jsql_error_codes.html 10/10