SQL++ Error Codes

  • Capella Operational
  • reference
    +
    The following table lists all of the SQL++ error codes, their error message, and some tips to resolve them.

    1xx Codes (shell)

    These errors are related to the shell.

    ICode Error Message Description

    100

    A connection was refused.

    Reason

    • A connection the cbq-shell was trying to make was refused by the remote partner.

    User Action

    • Verify the connection URL and try again.

    101

    Unsupported protocol scheme «scheme»

    Reason

    • The protocol scheme in the cbq-shell connection URL is not supported.

    User Action

    • Correct the URL ensuring only a supported scheme is used. Schemes: http, https, couchbase, couchbases

    102

    No such host «host»

    Reason

    • The noted host could not be found by the cbq-shell.

    User Action

    • Correct the host in the connection URL and try again.

    103

    No host in request URL

    Reason

    • The cbq-shell connection URL does not contain a host name or IP address.

    User Action

    • Correct the the connection URL and try again.

    104

    Unknown port «port»

    105

    No route to host

    106

    Network is unreachable.

    107

    Not connected to any cluster. Use \CONNECT command.

    Reason

    • A connection in the cbq-shell has not been attempted or has failed.

    User Action

    • Issue the connect command to connect to a server.

    108

    Failed to open a connection to the server endpoint.

    User Action

    • Review the details of the error reported.

    • Contact support.

    109

    Invalid input URL «url»

    Reason

    • The URL could not be properly parsed.

    • The URL contains an invalid host.

    • The URL contains an invalid port.

    • A port number was specified with couchbase:// or couchbases:// protocol scheme in the URL.

    User Action

    • Correct the URL and retry.

    116

    Error during file read «details»

    Reason

    • The cbq-shell input commands file could not be read.

    • The cbq-shell command history file could not be read.

    User Action

    • Review the details reported and take corrective action.

    117

    Error during file write «details»

    Reason

    • The cbq-shell command history file could not be written to.

    User Action

    • Review the details reported and take corrective action.

    118

    Unable to open file «file»

    Reason

    • The cbq-shell input commands file could not be opened.

    • The size of the cbq-shell input stream could not be determined.

    • The the cbq-shell input stream was empty.

    • The cbq-shell command history file could not be opened.

    User Action

    • Review the details reported and take corrective action.

    119

    Unable to close file «file»

    121

    Invalid password

    Reason

    • An empty password was entered at the cbq-shell password prompt.

    • A password entered at the cbq-shell prompt contains invalid characters.

    • An error occurred reading from the terminal for the cbq-shell password prompt.

    User Action

    • Enter only a valid password at the prompt.

    • review the details reported and take corrective action.

    122

    Invalid username.

    Reason

    • The cbq-shell command line flags include the password but not the user name.

    User Action

    • Pass both user and password on the cbq-shell command line.

    123

    Username missing in -credentials/-c option.

    Reason

    • The username could not be found in the credentials cbq-shell option value.

    User Action

    • Correct the value and retry.

    124

    Invalid format for credentials. Separate username and password with a colon (':').

    Reason

    • The credentials cbq-shell option value was not in the correct format.

    User Action

    • Correct the value and retry.

    136

    Command does not exist.

    Reason

    • The command entered at the cbq-shell prompt was invalid.

    • The cbq-shell help command could not find the command specified.

    User Action

    • Correct the command and retry.

    137

    Parameter does not exist

    Reason

    • An attempt was made access a parameter that doesn't exist via cbq-shell commands.

    User Action

    • Verify the parameter is correctly named and the sequence of commands means it is defined when expected.

    138

    Too many input arguments to command.

    Reason

    • A cbq-shell command was attempted but too many arguments were supplied.

    User Action

    • Consult the command help facility, correct the command and retry.

    139

    Too few input arguments to command.

    Reason

    • A cbq-shell command was attempted with insufficient arguments.

    User Action

    • Consult the command help facility, correct the command and retry.

    140

    Stack empty.

    Reason

    • The cbq-shell value stack was empty and an attempt to pop or set a value was attempted.

    User Action

    • Contact support.

    141

    Alias does not exist «alias»

    Reason

    • An attempt was made to list cbq-shell command aliases and no aliases exist.

    142

    Error when running in batch mode for Analytics. Incorrect input value

    Reason

    • The cbq-shell batch command line option was set to an invalid value.

    User Action

    • Correct the command line option and retry.

    143

    Cannot write to string buffer.

    Reason

    • Operating in batch mode, cbq-shell failed to write the command to the batch file.

    User Action

    • Review the details reported and take corrective action.

    170

    Operation timed out. Check query service url

    171

    Retired.

    172

    An error occurred writing data in JSON format.

    User Action

    • Contact support.

    173

    An error occurred reading data in JSON format.

    User Action

    • Contact support.

    174

    An error occurred in the Query driver.

    User Action

    • Review the reported error.

    • Contact support.

    175

    Error with io Writer.

    Reason

    • The cbq-shell was trying to write output and encountered an error.

    User Action

    • Review the details reported and take corrective action.

    176

    Unbalanced quotes in the input.

    Reason

    • The cbq-shell echo contained an unequal number of double quotation marks.

    User Action

    • Correct the command and retry.

    177

    Retired.

    178

    Place input argument URL at the end, after input flags.

    Reason

    • The cbq-shell connection URL was not passed as the engine argument and was not the last argument.

    User Action

    • Pass the connection URL using the engine argument flag or as the final argument on the command line.

    179

    Input Argument format is invalid.

    Reason

    • The argument to a cbq-shell command was not a supported format.

    • The value specified for a cbq-shell predefined value was not valid.

    User Action

    • Correct the argument or value type.

    180

    Query APIs cannot be initialized from Cluster Map.

    Reason

    • The cbq-shell failed to obtain the cluster map from the server.

    User Action

    • Review the connection URL is correct and still valid.

    181

    Invalid argument.

    Reason

    • An invalid argument was supplied to the cbq-shell redirect command.

    User Action

    • Consult the command help facility, correct the command and retry.

    182

    Terminal set-up failed (check not legacy console)

    Reason

    • cbq-shell failed to initialise the terminal for vi emulation mode.

    User Action

    • (Windows) Ensure cbq-shell is not being run in a legacy console window.

    • Don't use cbq-shell's vi emulation mode.

    183

    Invalid protocol. Mixed protocols are not permitted in engine list.

    Reason

    • Multiple endpoints were listed in the cbq-shell connection URL with differing protocols.

    User Action

    • Ensure all endpoints listed are using the same protocol.

    199

    A non-specific error occurred in the cbq-shell.

    User Action

    • Contact support.

    1xxx Codes (services)

    These errors are related to the services.

    ICode Error Message Description

    1000

    The server or request is read-only and cannot accept this write statement.

    Reason

    • A request was submitted using the GET method and attempted a statement that modifies data.

    • A request was received with the ˝readonly˝ parameter set to true and attempted a statement that modifies data.

    • A PREPARE statement preparing a statement that modifies data was received and the ˝auto_execute˝ was set to true.

    User Action

    • Use POST to submit write statements and ensure the ˝readonly˝ request parameter is not set or is set to false.

    • Ensure ˝auto_execute˝ is false when ˝readonly˝ is true (or when using the GET method) and preparing statements that modify data.

    1010

    Unsupported http method:«METHOD»

    Reason

    • The service endpoint supports only GET & POST HTTP methods. All other HTTP methods are not supported.

    User Action

    • Use a supported method to submit requests.

    1020

    «feature» «value» not implemented

    Reason

    • The noted feature and value combination is reserved but is not implemented.

    User Action

    • Use only supported feature and value combinations.

    1030

    Unknown «parameter» value: «value»

    Reason

    • The value supplied for the noted parameter is unknown.

    User Action

    • Ensure the value supplied is a supported value in the required format for the request parameter noted.

    1040

    Error processing «message»

    Reason

    • There was an error in processing as detailed in the message. e.g. a non-numeric string value passed as the value for a request parameter that is expected to be numeric.

    User Action

    • Where the error is derived from user controlled data, correct the data.

    See Note.

    1050

    No «parameter» value

    Reason

    • A value was not supplied for the required parameter.

    User Action

    • Provide valid values for all required parameters. e.g. ensure a user and password are supplied for all requests and a scan_vector is supplied for requests using AT_PLUS consistency level.

    1060

    Multiple values for «parameters»

    Reason

    • Multiple values have been supplied for a parameter or two mutually exclusive parameters are both enabled.

    User Action

    • Ensure all request parameters including named statement parameters, are unique and supplied only once.

    • Ensure mutually exclusive parameters are not simultaneously enabled.

    1065

    Unrecognized parameter in request: «parameter»

    Reason

    • An unknown request parameter was received.

    User Action

    • Pass only valid request parameters.

    • Check parameter names for typographical errors.

    1070

    «feature» has to be of type «expected»

    Reason

    • The value supplied for «feature» was not of the expected type.

    User Action

    • Correct the value and re-submit the request.

    1080

    Timeout «duration» exceeded

    Reason

    • The specified request time-out was reached.

    User Action

    • Check the statement is correctly constructed and using the expected plan.

    • Revise the time-out upward to accommodate the statement.

    1090

    «parameter» = «value» is invalid. «message»

    Reason

    • The named parameter's value was invalid for the reason noted in the message.

    User Action

    • Set the parameter to a valid value for the request.

    1100

    Invalid JSON in results

    Reason

    • An error occurred whilst writing results to the output stream.

    User Action

    • Please contact support.

    1110

    forbidden character (\\ or \") in client_context_id

    Reason

    • The request parameter client_context_id contains one or more of the noted invalid characters.

    User Action

    • Revise the value for client_context_id.

    1120

    Unsupported media type: «mediaType»

    Reason

    • The HTTP request header field ˝Accept˝ was not set to a supported value.

    User Action

    • Change the header field to ˝*/*˝, ˝application/json˝ or ˝application/xml˝.

    1130

    Request «id» is not a http request

    Reason

    • The request identified by «id» does not exist.

    1140

    Array «scan_entry» should be of length 2

    Reason

    • An invalid scan vector array element was found.

    User Action

    • Correct the scan vector.

    1150

    Bad sequence number «seqno». Expected an unsigned 64-bit integer.

    Reason

    • An entry in the scan vector contained a sequence number that was not an unsigned 64-bit integer.

    1155

    Bad UUID «vbucket_uuid». Expected a string.

    Reason

    • An entry in the scan vector contained a v-bucket UUID that was not a string value.

    1160

    Failed to decode nil value.

    Reason

    • A request requiring a body did not include one.

    User Action

    • Resubmit a valid request.

    1170

    Unsupported method «method»

    Reason

    • The HTTP request method noted is not supported by the endpoint.

    1180

    Indicates the service on the node is in the process of shutting down.

    Reason

    • A topology change was in the process of removing the node.

    1181

    Indicates the service on the node has been shut down and is waiting to be terminated.

    Reason

    • A topology change was in the process of removing the node.

    1182

    Service cannot handle requests

    Reason

    • A ping request has determined the service was not healthy.

    User Action

    • Examine the diagnostic logs to ascertain the reason for this state.

    • Contact support.

    1191

    User has more requests running than allowed

    Reason

    • Currently unused.

    1192

    User has exceeded request rate limit

    Reason

    • Currently unused.

    1193

    User has exceeded input network traffic limit

    Reason

    • Currently unused.

    1194

    User has exceeded results size limit

    Reason

    • Currently unused.

    1195

    Request execution aborted as the number of errors raised has reached the maximum permitted.

    Reason

    • The number of errors raised has reached the limit.

    User Action

    • Consult the errors to ensure the statement is operating as expected.

    • Revise the ˝error_limit˝ request parameter as necessary.

    1196

    Request has been declined with «reason»

    Reason

    • The request breached a limit for the tenant.

    1197

    Request does not have a valid tenant

    1198

    Request is not authorized for tenant «tenant»

    1199

    Request rejected due to limiting or throttling. «retry»

    User Action

    • Retry the request in accordance with «retry».

    1200

    Tenant not found «tenant»

    1201

    Request queue full

    Reason

    • The request queue has reached its limit

    User Action

    • Verify the server is processing requests.

    1202

    Client disconnected

    Reason

    • The server aborts servicing a request when it detects the client has closed its connection.

    1203

    Slow/stalled client write timed out

    Reason

    • A write to the request output stream timed out. Individual writes that make up the response must not block indefinitely, which typically occurs when the client isn't reading the response stream.

    User Action

    • Check the application is reading response stream fast enough to avoid blocking writes.

    1204

    request halted: free memory below «threshold»% of available memory

    Reason

    • The request was halted by admission control due to low available memory.

    Error 1040

    The Query Service REST API returns this error if you specify request parameters as form data and include an unescaped semicolon (;) in a statement.

    2xxx Codes (admin)

    These errors are related to the admin.

    ICode Error Message Description

    2000

    Error connecting to «what»

    Reason

    • The server encountered an error when establishing a connection to «what».

    User Action

    • Contact support.

    2001

    Error accounting manager: «reason».

    Reason

    • «reason» prevented correct start-up of the service statistics monitor.

    User Action

    • Contact support

    2010

    Invalid «component» URL: «URL»

    Reason

    • An invalid URL was encountered for the noted component.

    User Action

    • Contact support.

    2020

    Error in JSON decoding

    User Action

    • Contact support.

    2030

    Error in JSON encoding

    User Action

    • Contact support.

    2031

    Unknown setting: «setting»

    Reason

    • An unknown setting was supplied in a request to the settings rest endpoint.

    User Action

    • Provide only valid settings in the request.

    2032

    Incorrect value «value» for setting: «name»

    Reason

    • The value provided for the noted setting was not of the correct type.

    User Action

    • Correct the value and re-submit the request.

    2040

    Error retrieving cluster «message»

    User Action

    • Contact support.

    2050

    Error adding cluster «message»

    User Action

    • Contact support.

    2060

    Error removing cluster «message»

    User Action

    • Contact support.

    2070

    Error retrieving node «message»

    User Action

    • Contact support.

    2080

    No such node «message»

    User Action

    • Contact support

    2090

    Error adding node «message»

    User Action

    • Contact support

    2100

    Error removing node «message»

    User Action

    • Contact support

    2110

    Error creating metric «message»

    2120

    Error authorizing against cluster «message»

    Reason

    • Request received without suitable credentials.

    • Failure to authenticate with given credentials.

    • Authenticated user lacks required privileges.

    User Action

    • Review the embedded «message» information for more detail on why the operation failed.

    2130

    The admin endpoint encountered an error.

    User Action

    • Contact support

    2140

    server is not ssl enabled

    Reason

    • An attempt has been made to update the SSL certificate but the server does not have SSL enabled.

    User Action

    • Review the server configuration.

    2150

    Not a proper creds JSON array of user/pass structures: «creds»

    2160

    Completed requests qualifier already set: «qualifier»

    User Action

    • Define a different qualifier or update the existing one.

    • Refer to the ˝logging qualifiers section of the documentation.

    2170

    Completed requests qualifier unknown: «qualifier»

    Reason

    • An attempt was made to add a qualifier that is not a known.

    User Action

    • Check the qualifier specified is valid.

    • Refer to the ˝logging qualifiers section of the documentation.

    2180

    Completed requests qualifier not set: «qualifier»

    Reason

    • An attempt was made to access a qualifier that was not set.

    User Action

    • Ensure the intended qualifier has been set.

    2190

    Non-unique completed requests qualifier «qualifier» cannot be updated

    Reason

    • A attempt was made to update a qualifier that isn't unique.

    User Action

    • Only attempt to update unique qualifiers. Non-unique qualifiers may only be added/removed.

    2200

    Completed requests qualifier «qualifier» cannot accept argument «value»

    Reason

    • The data type of the «value» was incompatible with the qualifier.

    User Action

    • Correct the value for the qualifier and re-submit the request.

    2201

    Completed requests maximum plan size («size») is invalid.

    2210

    Invalid service port: «port»

    User Action

    • Contact support.

    2220

    Error getting request body

    Reason

    • A prepareds endpoint PUT request was received but the body was empty or could not be read.

    User Action

    • contact support

    2230

    FFDC invocation failed.

    Reason

    • An error occurred with a manual First Failure Data Capture (FFDC) invocation.

    User Action

    • Wait until the specified reported minimum time before attempting a further invocation.

    2240

    Error accessing log

    Reason

    • A request was made to the diagnostic log endpoint and there was a error accessing the file.

    User Action

    • Ensure the diagnostic log file being accessed exists for the duration of the request.

    2500

    Failed to start workload reporting

    Reason

    • An error occurred when starting request capture for workload reporting.

    User Action

    • Review the error and correct any configuration issues.

    2501

    Invalid value «value» for workload setting «setting»

    Reason

    • The value provided for the setting is invalid.

    User Action

    • Consult the documentation for the valid values for the workload settings. Review the configuration and correct the value.

    2502

    Error processing workload configuration

    Reason

    • The value provided for AWR configuration is invalid.

    User Action

    • Review the configuration and correct the value.

    • The value must be a valid object or a string encoding a valid JSON object.

    2503

    Error distributing workload settings

    Reason

    • An error occurred distributing the workload settings to other Query nodes.

    User Action

    • Contact support.

    2504

    Warning during AWR operation.

    Reason

    • An AWR operation encountered a condition that needs attention.

    User Action

    • Check the error message for recommended actions. Or consult the documentation for guidance.

    3xxx Codes (parse)

    These errors are related to the parsing.

    ICode Error Message Description

    3000

    Indicates a syntax error occurred during statement parsing.

    User Action

    • Correct the syntax and re-submit the request. Look for incorrectly spelled keywords, use of reserved words as identifiers, incorrect or omitted punctuation and delimiters or invalid grammar.

    • If using the cbq-shell, the \syntax command may help with grammar issues.

    3005

    Details the location in the statement text of errors encountered during parsing.

    3006

    invalid escape sequence

    Reason

    • An invalid escape sequence was encountered whilst parsing a string value. Escape sequences are introduced with a backslash (Reverse Solidus, U+005C) and literal backslashes must be escaped.

    User Action

    • Valid escape sequences are: \b, \f, \n, \r, \t, \/, \\, \", \`, \u#### (where #### is a Unicode symbol number in hexadecimal).

    3007

    invalid string

    Reason

    • An opening quotation mark defining a string was encountered without any further characters.

    User Action

    • Correctly delimit all string values in statements.

    3008

    missing closing quote

    User Action

    • Contact support.

    3009

    unescaped embedded quote

    User Action

    • Contact support.

    3080

    Ambiguous reference to field «field»

    Reason

    • A field reference in the statement was not fully qualified and there were multiple keyspaces it could have referred to. e.g. SELECT a FROM b, c WHERE ...

    User Action

    • Fully qualify references when the potential for ambiguity exists. e.g. SELECT b.a FROM b,c WHERE ...

    3081

    Duplicate variable: «identifier» already in the scope «context»

    Reason

    • There was a non-unique binding name in a LET or WITH clause.

    User Action

    • Use unique names for all bindings in a statement.

    3082

    Formalizer internal error: «details»

    Reason

    • A statement included a correlated reference that was not permitted.

    User Action

    • If encountered with a existing prepared statement, re-prepare the statement.

    • Contact support.

    3083

    Invalid input.

    Reason

    • Invalid input was submitted, either a statement or expression, depending on context.

    User Action

    • Submit only valid SQL++ statements or expressions.

    3100

    A semantic error is present in the statement.

    Reason

    • The statement includes portions that violate semantic constraints.

    User Action

    • The cause will contain more detail on the violation; revise the statement and re-submit.

    3101

    Semantic error: «what»

    Reason

    • An internal error occurred during semantics check for the query.

    User Action

    • Contact support.

    3110

    «op» on «alias» cannot have join hint (USE HASH or USE NL)

    Reason

    • Join type hints are only supported for ANSI join and nest operations.

    User Action

    • Review the statement and revise the operation or omit the hints.

    3120

    «operation» on «alias» cannot have USE KEYS.

    Reason

    • USE KEYS is not supported in this context.

    3130

    «operation» on «alias» cannot have USE INDEX.

    Reason

    • USE INDEX is not supported in this context.

    3150

    MERGE with ON KEY clause cannot have document key specification in INSERT action.

    Reason

    • A lookup merge statement specified a document key. e.g. MERGE INTO default USING [{},{} AS source ON KEY 'aaa' WHEN NOT MATCHED THEN INSERT ('key',{})]

    User Action

    • Refer to the documentation for lookup merge statements.

    3160

    MERGE with ON clause must have document key specification in INSERT action

    Reason

    • An ANSI merge statement did not include the document key specification. e.g. MERGE INTO default USING [{},{} AS source ON default.id IS VALUED WHEN NOT MATCHED THEN INSERT ({})]

    User Action

    • Refer to the documentation for ANSI merge statements.

    3170

    MERGE is missing source.

    3180

    MERGE with ON KEY clause cannot have USE INDEX hint specified on target.

    Reason

    • The USE INDEX hint is not supported with lookup merge statement targets. e.g. MERGE INTO default USE INDEX (ix) USING [{},{} AS source ON KEY 'aaa' WHEN NOT MATCHED THEN INSERT ({})]

    User Action

    • Refer to the documentation for lookup merge statements.

    3190

    MERGE with ON KEY clause cannot have join hint specified on source.

    Reason

    • The USE INDEX hint is not supported with lookup merge statement source.

    User Action

    • Refer to the documentation for lookup merge statements.

    3200

    Cannot mix «op1» on «alias1» with «op2» on «alias2».

    Reason

    • Mixing ANSI and non-ANSI joins. e.g. SELECT * FROM default d1 JOIN default d2 ON d1.id = d2.id JOIN default d3 ON KEYS 'aaa'

    • Mixing ANSI and non-ANSI NEST statements.

    User Action

    • Revise the statement to use only one type of operation.

    3220

    «name» window function «clause» «reason»

    Reason

    • A violation of the window function semantic restrictions was present in the statement.

    User Action

    • Revise the statement to remove the violation.

    3230

    «feature» is an enterprise level feature.

    Reason

    • An attempt was made to use the noted feature that is only available in the Enterprise Edition of the product.

    User Action

    • Consult the documentation for the feature you're trying to use.

    3250

    Advise supports SELECT, MERGE, UPDATE and DELETE statements only.

    Reason

    • An attempt was made to run advise on an unsupported statement.

    User Action

    • Refer to the documentation for ADVISE.

    3255

    Advisor function is only allowed in projection clause

    Reason

    • An attempt was made to use the ADVISOR() function out side of a select statement's projection.

    User Action

    • Refer to the documentation for ADVISE.

    3256

    FROM clause is not allowed when Advisor function is present in projection clause.

    Reason

    • An attempt was made to use the advisor function on the results from a keyspace fetch.

    User Action

    • Refer to the documentation for ADVISE.

    3260

    «what» is only supported in Developer Preview Mode.

    3261

    «type» term must have USE KEYS

    Reason

    • A keyspace in the statement was not an explicit path and there was no USE KEYS clause.

    User Action

    • Revise the statement to include an explicit path or a USE KEYS clause as appropriate.

    3262

    «type» term should not have USE INDEX

    Reason

    • A keyspace in the statement was not an explicit path and there was a USE INDEX clause.

    User Action

    • Revise the statement to include an explicit path or remove the USE INDEX clause as appropriate.

    3270

    UPDATE STATISTICS (ANALYZE) supports GSI indexes only for INDEX option.

    Reason

    • An attempt was made to run UPDATE STATISTICS for a non-GSI index.

    User Action

    • Do not run UPDATE STATISTICS on a non-GSI index.

    3271

    INDEX ALL option for UPDATE STATISTICS (ANALYZE) can only be used for a collection.

    Reason

    • A statistics update was attempted using the INDEX ALL clause on a bucket.

    User Action

    • Do not run UPDATE STATISTICS with INDEX ALL on buckets.

    3272

    UPDATE STATISTICS of 'self' is not allowed

    Reason

    • A statistics update was attempted on an index expression including ˝self˝.

    User Action

    • Revise the index expression to not include ˝self˝.

    • Refer to the documentation for UPDATE STATISTICS.

    3280

    «index key expression» is not indexable

    Reason

    • An expression in the index definition was not indexable (e.g. a constant).

    User Action

    • Revise the definition to include only indexable expressions.

    3281

    «message» «location» MISSING attribute not allowed (Only allowed with gsi leading key).

    Reason

    • An attempt was made to create a GSI index and INCLUDE MISSING was specified for a non-leading key.

    • An attempt was made to create a non-GSI index and INCLUDE MISSING was specified.

    • An attempt was made to create an index using FLATTEN_KEYS, and INCLUDE MISSING was specified for an argument other than the initial argument.

    3282

    Attributes are not allowed on «details» «location» of flatten_keys.

    Reason

    • Attributes specified for FLATTEN_KEYS.

    User Action

    • Revise the statement to remove the attributes on the FLATTEN_KEYS() expression.

    • NOTE: Arguments passed to FLATTEN_KEYS() may have attributes.

    3283

    «flatten keys expression» «location» is not allowed in this context

    Reason

    • FLATTEN_KEYS specified outside of CREATE INDEX or UPDATE STATISTICS or was surrounded by a function.

    User Action

    • Refer to the documentation for flatten keys.

    3284

    ALL/DISTINCT is not allowed in «expression» «location»

    Reason

    • ALL and/or DISTINCT used in an invalid location.

    User Action

    • Revise the statement.

    3285

    Index of «expression» «location» is not allowed as a index key

    Reason

    • An attempt to use SELF as an index key was made.

    User Action

    • Remove SELF from the the index definition.

    3286

    PRIMARY INDEX is not allowed using FTS

    Reason

    • FTS was specified as the index provider for a primary index.

    3290

    Join hint (USE HASH or USE NL) cannot be specified on the first from term «term»

    Reason

    • A join hint was specified on the first term of a join.

    User Action

    • Revise the statement to remove the hint on the first join term.

    3291

    «what» «expression» is not a valid constant, named, positional or function parameter.

    Reason

    • The ORDER BY direction or NULLS position was not a valid constant, named, positional or function parameter.

    User Action

    • Revise the ORDER BY direction or NULLS position to be a valid constant, named, positional or function parameter.

    3300

    recursive_with semantics: «cause»

    Reason

    • The statement specifies restricted syntax in a recursive common table expression definition.

    User Action

    • Revise the statement removing the restricted syntax.

    3301

    Anchor Clause cannot have recursive reference in FROM Expression : «alias»

    Reason

    • The statement includes a recursive common table expression that references itself in the first branch of the defining UNION. e.g. WITH RECURSIVE rcte AS (SELECT * FROM rcte UNION SELECT * FROM rcte) SELECT 1

    User Action

    • Correct the recursive common table expression definition.

    3302

    Recursive reference «alias» must not appear more than once in the FROM clause

    Reason

    • The statement includes a recursive common table expression that references itself more than once in the recursive branch of the defining UNION. e.g. WITH RECURSIVE rcte AS (SELECT * FROM default UNION SELECT * FROM rcte, rcte) SELECT 1

    User Action

    • Revise the statement removing the duplicate reference.

    3303

    Invalid config option «option»

    Reason

    • The statement includes a recursive common table expression with an OPTIONS clause object containing an invalid option. e.g. WITH RECURSIVE rcte AS (SELECT * FROM default UNION SELECT * FROM rcte) OPTIONS {'bad':1} SELECT 1

    User Action

    • Refer to the documentation for permitted options.

    3304

    recursive_with_unsupported: «reason»

    Reason

    • A recursive common table expression was specified in a NEST clause.

    • A recursive common table expression was specified in an UNNEST clause.

    • A recursive common table expression was specified in an OUTER JOIN clause.

    User Action

    • Revise the statement to remove the unsupported reference.

    3305

    Recursive WITH «alias» limited to «limit» documents as no explicit document count limit or memory quota set

    Reason

    • The request without a memory quota set contained a recursive common table expression without an explicit document limit that produced more results than the implicit limit and was stopped.

    User Action

    • Review the statement and its control of the recursion. Use a memory quota to guard against runaway recursion or specify an explicit document limit for the common table expression.

    3306

    Recursive WITH «alias» stopped at «depth» level as no explicit level limit or memory quota set

    Reason

    • The request without a memory quota set contained a recursive common table expression without an explicit level limit exceeded the implicit limit and was stopped.

    User Action

    • Review the statement and its control of the recursion. Use a memory quota to guard against runaway recursion or specify an explicit level limit for the common table expression.

    3307

    Cycle fields validation failed for with term: «alias»

    Reason

    • The expression specified in the cycle clause is not an identifier or path term.

    User Action

    • Revise statement removing or modifying the invalid cycle clause expression.

    3400

    Semantic error in query with vector search function: <<msg>>.

    Reason

    • A vector search function cannot be used together with certain features of a query, e.g. GROUP BY clause or Window function.

    User Action

    • Revise the statement to remove the offending features of the query.

    3401

    Invalid index attributes specified for index key <<key>> in CREATE INDEX statement.

    Reason

    • Cannot mix index attribute VECTOR with <<attr>> for index key <<key>> in CREATE INDEX statement.

    User Action

    • Revise the statement to remove the offending index attribute.

    3402

    Multiple VECTOR index key specified in CREATE INDEX statement for index <<name>>.

    Reason

    • Only a single index key with VECTOR attribute is supported in CREATE INDEX statement.

    User Action

    • Revise the statement to include only a single index key with VECTOR attribute.

    3403

    Multiple index keys specified in CREATE VECTOR INDEX statement for index <<name>>.

    Reason

    • Only a single index key (with VECTOR attribute) is supported in CREATE VECTOR INDEX statement.

    User Action

    • Revise the statement to include only a single index key (with VECTOR attribute).

    3404

    No index key with VECTOR attribute specified in CREATE VECTOR INDEX statement for index <<name>>.

    Reason

    • An index key with VECTOR attribute must be included in CREATE VECTOR INDEX statement.

    User Action

    • Revise the statement to include an index key with VECTOR attribute.

    3405

    Vector function (<<term>>) in ORDER BY clause must use a constant for <<option>>.

    Reason

    • A vector function (<<term>>) in ORDER BY clause uses a non-constant for specifying <<option>>.

    User Action

    • Revise the statement to use a constant for the order option.

    3406

    Vector function (<<term>>) in ORDER BY clause must use ASC and NULLS LAST.

    Reason

    • A vector function (<<term>>) in ORDER BY clause uses an invalid option <<option>>.

    User Action

    • Revise the statement to use only ASC and NULLS LAST order options.

    3407

    Cannot use DISTINCT in an array index key with VECTOR attribute in CREATE INDEX statement.

    Reason

    • An array index key with VECTOR attribute is specified using DISTINCT in CREATE INDEX statement.

    User Action

    • Revise the statement to remove DISTINCT in array index key with VECTOR attribute.

    3408

    Cannot use a constant construct (object or array) in an index key with VECTOR attribute in CREATE INDEX statement.

    Reason

    • An index key (<<name>>) with VECTOR attribute is specified as an object construct or array construct in CREATE INDEX statement.

    User Action

    • Revise the statement to not use a constant construct in index key with VECTOR attribute.

    4xxx Codes (plan)

    These errors are related to the query plan.

    ICode Error Message Description

    4000

    A planning error occurred.

    User Action

    • Contact support.

    4001

    Reprepare error

    Reason

    • A parsing error occurred when re-preparing a statement.

    • There was an error building the plan when re-preparing a statement.

    • There was an error storing the re-prepared plan in the cache.

    User Action

    • Prepare the statement under a new name.

    • Contact support.

    4002

    plan was prepared by a newer engine

    Reason

    • The planVersion in the encoded plan exceeds the plan version supported by the current server: 800

    User Action

    • Upgrade the server to a version that supports the planVersion specified in the encoded plan.

    • The mismatch triggered a re-prepare; verify that the re-prepared plan uses the expected indexes.

    4003

    Failed to verify plan: «reason»

    Reason

    • Keyspace, scope or index referenced in the plan is missing or has changed since the plan was generated.

    • Index is no longer online or does not exist.

    • Keyspace UUID has changed, indicating recreation.

    User Action

    • Ensure that all referenced keyspaces, scopes, buckets, and indexes still exist and are online.

    • Failure in verification led to a re-prepare; inspect the re-prepared plan.If it appears sub-optimal, force prepare the statement after making the required changes.

    4010

    From Term must have a name or alias.

    Reason

    • The statement includes an unnamed FROM term.

    User Action

    • Revise the statement aliasing terms that are unnamed (i.e. non-keyspace path terms).

    4020

    Duplicate alias «alias» «location»

    Reason

    • The statement defines the alias multiple times for different elements.

    User Action

    • Revise the statement to ensure aliases are unique.

    4021

    Duplicate WITH alias reference in «term»: «alias» «location»

    Reason

    • The statement contains a duplicate reference to the noted alias in a FROM expression.

    User Action

    • Revise the statement to ensure alias references are unique.

    4025

    Unknow alias in : ON KEY «expr» FOR «alias».

    Reason

    • The statement contains an index join FOR clause referencing an unknown alias.

    User Action

    • Revise the statement correcting the alias.

    4030

    FROM in correlated subquery must have USE KEYS clause: FROM «keyspace».

    4035

    No secondary index available for keyspace «keyspace» in correlated subquery.

    Reason

    • A correlated sub-query was specified but a suitable index on the keyspace was not available to support it.

    User Action

    • Create the necessary index.

    • Check the expected index is online.

    4036

    Correlated subquery's keyspace «keyspace» cannot have more than «number» documents without appropriate secondary index

    Reason

    • A primary scan supporting a correlated sub-query returned more keys than permitted.

    User Action

    • Create an appropriate secondary index to support the sub-query.

    4040

    No such prepared statement: «name»

    Reason

    • The prepared statement referenced in the request doesn't exist.

    User Action

    • Verify that a valid prepared statement name is specified.

    4050

    JSON unmarshalling error: «details»

    Reason

    • A request with a non-character string ˝prepared˝ parameter value was received.

    • Automatic execution (auto_execute) failed to produce a prepared statement.

    • Inter-node prepared statement distribution failed.

    User Action

    • Ensure a valid value is passed for ˝prepared˝.

    • Contact support.

    4060

    Unable to add name: «reason»

    Reason

    • A prepared statement with the same name was already defined.

    User Action

    • Use a unique name for each prepared statement.

    • Delete unwanted prepared statements.

    4070

    Unable to decode prepared statement

    4080

    Encoded plan parameter does not match encoded plan of «name»

    Reason

    • The ˝encoded_plan˝ parameter received for a prepared statement didn't match the cached plan for the statement.

    • Different nodes had a plan of the same name but their plans differed.

    User Action

    • Resubmit the request and the cached plan will be used.

    • Contact support.

    4090

    Mismatching name in encoded plan, expecting: «expected», found: «found»

    Reason

    • The name in an encoded plan doesn't match the prepared statement's name.

    User Action

    • Correct the request if passing an encoded plan.

    • Delete the entry from the prepareds cache.

    • Contact support.

    4091

    Mismatching query_context in encoded plan

    Reason

    • The query context in an encoded plan doesn't match the prepared statement's query context.

    User Action

    • Correct the request if passing an encoded plan.

    • Delete the entry from the prepareds cache.

    • Contact support.

    4092

    Prepared name «name» is predefined (reserved).

    User Action

    • Don't use predefined names for prepared statements. Predefined names have a double underscore ('__') prefix and include: '__get','__insert','__upsert','__update' and '__delete'.

    4100

    No index available for join term «term»

    Reason

    • There was no available index to support the index join or NEST on the noted term.

    User Action

    • Create an appropriate secondary index to support the join or NEST statement.

    4110

    From Expression Term cannot have USE KEYS or USE INDEX Clause

    Reason

    • An expression term in a from clause specifies USE KEYS or USE INDEX. e.g. SELECT * FROM (SELECT * FROM default) a USE KEYS['key']

    User Action

    • Revise the statement removing the invalid clauses or expression term.

    4115

    Index service not available.

    Reason

    • No active Index service nodes were found in this cluster.

    User Action

    • Ensure the Index service is defined and operational in the cluster before attempting index operations.

    4120

    No index available on keyspace «keyspace» that matches your query. Use CREATE PRIMARY INDEX ON «keyspace» to create a primary index, or check that your expected index is online.

    Reason

    • The statement was attempting to scan the keyspace but there was no index available to support the scan.

    User Action

    • Create a appropriate index to support the scan.

    4125

    Primary index «indexname» not online.

    Reason

    • A statement was attempting to scan a keyspace using a primary index however the index was not online.

    User Action

    • Check the state of the index and build it if necessary.

    • Create a appropriate index to support the scan.

    4130

    Error listing sub-queries.

    4210

    Expression «expression» must depend only on group keys or aggregates.

    Reason

    • The statement contained grouping and an expression in the projection referenced a value that was not a grouping key or an aggregate. e.g. SELECT a FROM b GROUP BY c

    User Action

    • Revise the statement to use only grouping keys or aggregates in the projection.

    4300

    The index «name» already exists.

    Reason

    • An attempt was made to create an index with a name that already exists.

    User Action

    • Verify that existing index has the desired definition.

    • Use unique index names.

    4310

    «meta-term» in query with multiple FROM terms requires an argument

    Reason

    • A statement with multiple FROM terms includes meta-data function without a qualifying argument.

    User Action

    • Add the term qualification argument to the meta-data function.

    4320

    DESC option is not supported by the indexer.

    Reason

    • The GSI indexer doesn't support descending key ordering.

    4321

    Plan error: «what»

    Reason

    • An internal error occurred whilst generating the query plan.

    User Action

    • Contact support.

    4322

    ALTER INDEX not supported

    Reason

    • An ALTER INDEX statement was attempted but is not supported by the indexer.

    User Action

    • Drop and re-create to alter an index.

    4323

    Placeholder is not allowed in keyspace

    4330

    No index available for ANSI «type» term «alias»

    Reason

    • The statement contains an ANSI JOIN with the noted alias and no index exists to support it.

    • The statement contains an ANSI NEST with the noted alias and no index exists to support it.

    User Action

    • Create a appropriate index to support the operation.

    4340

    PARTITION index is not supported by indexer.

    Reason

    • The statement includes an index partitioning clause that isn't supported by the indexer.

    4350

    An error occurred in GSI

    Reason

    • An attempt was made to define an index with a duplicate name.

    • An attempt was made to manage an index that was not defined.

    • An operation the user lacked necessary permissions for was attempted on an index.

    • An internal error occurred in the GSI sub-component.

    User Action

    • Review the reported error for more detail on why the operation failed and possible user actions.

    4360

    A transient error occurred in GSI

    User Action

    • Review the error details for possible user actions. GSI will typically handle this condition and retry the operation automatically when appropriate. The state of index build operations can be monitored via the GSI endpoint or system:indexes collection.

    4370

    «request» temp file size exceeded limit «limit», «size»

    Reason

    • GSI was unable to write to a temporary file for the request as the configured temporary disk space limit was reached.

    User Action

    • Check the settings indicated permit sufficient space for the operation.

    • Review active statements and their temporary space requirements.

    4380

    Search() function with KNN has no search index

    Reason

    • Query uses Search() as predicate with KNN, but there is no matching FTS index

    User Action

    • Create appropriate FTS index

    4400

    Encoded plan use is not allowed in serverless mode.

    Reason

    • The server was operating in ˝serverless˝ mode and the request attempted to pass an encoded plan for execution.

    User Action

    • Submit the statement text for planning and execution.

    4600

    Error occurred during cost-based optimization: «what»

    4610

    Invalid index statistics for index «name» : «what»

    User Action

    • Contact support.

    4998

    Document key must be a string: «key»

    Reason

    • A key in a USE KEYS clause was not a string. e.g. SELECT * FROM default USE KEYS[123;]

    User Action

    • Correct the key in the statement.

    4999

    A non-specific warning was raised.

    Reason

    • Clustering was unable to add a Query service node due to the detailed incompatibility.

    5xxx Codes (exec)

    These errors are related to the execution.

    ICode Error Message Description

    5000

    An internal error occurred.

    Reason

    • A sub-component such as GSI may be reporting an error.

    • An internal error occurred.

    User Action

    • If reported by a sub-component, review the error details for appropriate actions.

    • Contact support

    5001

    A panic occurred during execution.

    Reason

    • The server encountered an internal error that resulted in a panic which halted request processing.

    User Action

    • Contact support

    5002

    Execution internal error: «what»

    User Action

    • Contact support

    5003

    Execution parameter error: «reason»

    Reason

    • The request has a USING clause and provides parameters.

    • The request has a USING clause that includes a non-static value.

    User Action

    • Either provide parameters or use a USING clause.

    • Use only static value in a USING clause.

    5004

    Expression parsing «expression» failed

    Reason

    • A projection EXCLUDE clause in the statement contains a string reference that cannot be parsed.

    User Action

    • Revise the statement to use only valid expressions in projection EXCLUDE clauses.

    5005

    Temporary file quota exceeded

    Reason

    • An order by operation was unable to spill to disk as the temporary space quota was hit.

    • A group by operation was unable to spill to disk as the temporary space quota was hit.

    • An ordered sequential scan was unable to spill to disk as the temporary space quota was hit.

    User Action

    • Review the Query service temporary space quota setting meets with requirements.

    • Review statements to reduce the amount of data sorted and grouped.

    • Create a primary index to support ordered document key operations.

    5006

    Out of key validation space.

    Reason

    • The INSERT operation was using a sequential scan exhausted the space reserved to exclude new keys.

    • The space reserved to record keys processed by the UPSERT statement was exhausted.

    User Action

    • Divide the statement into portions that don't exceed the key validation space.

    • Create a suitable secondary index to support the statement.

    5007

    Error executing CURL function

    Reason

    • An attempt was made to access a URL outside of the configured list.

    • An attempt was made to access a restricted URL using the CURL() function.

    • An attempt was made to access an invalid URL.

    • The CURL() function failed to complete within the specified time limit.

    • An invalid option was passed to the CURL() function.

    • The CURL() function failed to access the URL for the reason noted.

    User Action

    • Check the server configuration permits access to the URL.

    • Don't attempt to access restricted URLs.

    • Ensure the URL is correctly formed with a valid, supported scheme.

    • Ensure the time limit specified is suitable for the URL response time.

    • Refer to the documentation for valid options.

    • Depending on the error, contact your administrator or support.

    5008

    Execution of statement has been stopped.

    Reason

    • A nested statement was stopped when the nesting statement stopped.

    User Action

    • Verify it is expected that the nesting statement was stopped.

    5010

    Error evaluating «what»

    Reason

    • The noted error occurred during the evaluation of the indicated item.

    User Action

    • Review the indicated error and it's actions.

    5011

    Abort: «reason»

    Reason

    • The SQL++ abort() function was called in the statement. e.g. SELECT abort('An example cause')

    5015

    EXPLAIN: Error marshalling JSON.

    User Action

    • Contact support

    5017

    EXPLAIN FUNCTION: «reason»

    Reason

    • The statement failed to build a query plan for an embedded query.

    • An internal error occurred writing the plan as JSON.

    User Action

    • Contact support.

    5020

    Error updating «phase» GROUP value

    User Action

    • Contact support.

    5021

    Date error

    5022

    Date error: Overflow

    User Action

    • Ensure date values are in the range -9999-01-01 12:00:00.000000000 UTC to 9999-12-31 09:59:59.999000000 UTC.

    5023

    Date error: Invalid format

    User Action

    • Correct the date format specification.

    5024

    Date error: Invalid date string

    Reason

    • A date function converting a string to a date encountered an invalid element in the string, such as a numeric month outside the range 1-12.

    User Action

    • Correct the date string value.

    5025

    Date error: Failed to parse

    Reason

    • A date function converting a string to a date failed to parse the input string according to the format.

    User Action

    • Correct the date string value.

    5026

    Date error: Invalid component

    Reason

    • A date function operating on elements in a date value was given an invalid date component.

    User Action

    • Correct the date component specified.

    5027

    Date error: Value is not an integer

    Reason

    • A date function manipulating a component of a date value was provided a non-integer number.

    User Action

    • Correct the argument to the date function.

    5028

    Date error: Invalid argument

    Reason

    • A date function argument was not of the correct type.

    User Action

    • Correct the argument to the date function.

    5029

    Date error: Invalid time zone

    Reason

    • A date value or function argument includes an unknown or invalid timezone.

    User Action

    • Correct the timezone in the date value or function argument. Absolute offsets are recommended in place of time zone names.

    5030

    An invalid value was encountered.

    User Action

    • Contact support.

    5031

    Invalid expression

    Reason

    • An expression in an EXCLUDE clause was invalid.

    • An expression in an argument to OBJECT_REMOVE_FIELDS() was invalid.

    User Action

    • Revise the statement providing valid a expression.

    5032

    iUnsupported expression

    Reason

    • An expression in an EXCLUDE clause is not supported.

    • An expression in an argument to OBJECT_REMOVE_FIELDS() is not supported.

    User Action

    • Revise the statement providing valid a expression.

    5035

    Out of range evaluating «term»

    Reason

    • An ARRAY_RANGE() call exceeds the permitted limit for the number of elements produced.

    • An ARRAY_REPEAT() call exceeds the permitted limit for the number of elements produced.

    • A REPEAT() call exceeds the permitted limit for the resulting string's size.

    • A DATE_RANGE_STR() call exceeds the permitted limit for the number of values produced.

    • A DATE_RANGE_MILLIS() call exceeds the permitted limit for the number of values produced.

    User Action

    • Revise the function arguments to produce results within the permitted limit.

    5036

    Division by 0.

    Reason

    • An arithmetic operation dividing by zero was encountered during the statement evaluation.

    User Action

    • If required, revise the statement as necessary to avoid such operations.

    5040

    Duplicate Final Group.

    User Action

    • Contact support.

    5050

    No INSERT key for «document»

    User Action

    • Contact support.

    5060

    No INSERT value for «document»

    User Action

    • Contact support.

    5070

    Cannot INSERT non-string key «key» of type «type»

    Reason

    • The statement includes an INSERT operation with a non-string key value. e.g. INSERT INTO default VALUES(1,{'the':'value'})

    User Action

    • Revise the statement to ensure keys are always string values.

    5071

    Cannot INSERT non-OBJECT options «options» of type «type»

    Reason

    • The statement includes an INSERT operation with a non-OBJECT options value. e.g. INSERT INTO default VALUES('the_key',{'the':'value'},null)

    User Action

    • Revise the statement to ensure insert options are always provided as an object value or omitted if unneeded.

    5072

    No UPSERT key for «value»

    User Action

    • Contact support.

    5073

    Cannot act on the same key multiple times in an UPSERT statement

    Reason

    • The UPSERT statement was trying to modify the same key multiple times. e.g. UPSERT INTO default VALUES ('key0',{}),('key0',{})

    User Action

    • Revise the statement to ensure that keys are unique.

    5075

    No UPSERT value for «value»

    User Action

    • Contact support.

    5078

    Cannot UPSERT non-string key «key» of type «type».

    Reason

    • The statement includes an UPSERT operation with a non-string key value. e.g. UPSERT INTO default VALUES(1,{'the':'value'})

    User Action

    • Revise the statement to ensure keys are always string values.

    5079

    Cannot UPSERT non-OBJECT options «value» of type «type».

    5080

    DELETE alias «alias» not found in item «value»

    User Action

    • Contact support.

    5090

    DELETE alias «alias» has no metadata in item.

    User Action

    • Contact support.

    5100

    UPDATE alias «alias» not found in item

    User Action

    • Contact support.

    5110

    UPDATE alias «alias» has no metadata in item.

    User Action

    • Contact support.

    5120

    Missing UPDATE clone.

    User Action

    • Contact support.

    5130

    Invalid field update.

    Reason

    • An attempt was made to update a field that doesn't support updating or to set an unsupported value for the field.

    User Action

    • Revise statement to not update the field.

    5180

    Invalid UNNEST position of type «type»

    User Action

    • Contact support.

    5190

    The scan_vector parameter should not be used for queries accessing more than one keyspace. Use scan_vectors instead. Keyspaces: «list»

    Reason

    • The request parameter ˝scan_vector˝ was specified for the request which references multiple keyspaces.

    User Action

    • Use the ˝scan_vectors˝ request parameter with statements referring to multiple keyspaces.

    5201

    Dynamic auth error

    Reason

    • The determination of dynamic privileges required by the request failed.

    User Action

    • Revise the request to ensure all keyspace references can be resolved enabling dynamic authorisation to proceed.

    5202

    Transactional auth error

    Reason

    • The determination of transaction privileges required by the request failed.

    User Action

    • Verify the user is permitted to run transaction statements.

    5210

    Unable to find user «user».

    Reason

    • A role grant or revoke statement referred to a user that didn't exist.

    • A user alter or drop statement referred to a user that didn't exist.

    User Action

    • Verify the user referenced in the statement exists prior to executing the statement.

    5211

    User «name» already exists.

    Reason

    • A create user command was attempted but the user specified already existed.

    User Action

    • Revise the statement if intending to create a different user.

    5212

    Attribute «attribute» «reason» for «domain» users.

    Reason

    • A create user statement creating a ˝local˝ domain user did not specify the password attribute.

    • A create or alter user statement for a ˝remote˝ domain user specified the password attribute.

    User Action

    • Specify the password when creating ˝local˝ domain users.

    • Do not specify the password when creating or altering ˝remote˝ domain users.

    5213

    Group «name» already exists.

    Reason

    • A create group command was attempted but the group specified already existed.

    User Action

    • Revise the statement if intending to create a different group.

    5214

    Unable to find group «name».

    Reason

    • A group role grant or revoke statement specified a group that was not defined.

    • A group alter or drop statement specified a group that was not defined.

    • A create or alter user statement specified a group that was not defined.

    User Action

    • Ensure the group exists before attempting role operations.

    • Ensure the group exists before attempting to alter or drop it.

    • Ensure the group exists before assigning to a user.

    5215

    Attribute «attribute» «reason» for groups.

    Reason

    • A create group statement did not specify any roles.

    User Action

    • Specify at least one role when creating a group.

    5216

    Missing attributes for «what».

    Reason

    • A create user statement did not specify any attributes.

    • An alter user statement did not specify any attributes.

    • A create group statement did not specify any attributes.

    • An alter group statement did not specify any attributes.

    User Action

    • Specify at least one attribute when creating users or groups.

    5220

    Role «role» requires a keyspace.

    Reason

    • A role in a grant or revoke statement requires qualification with a keyspace.

    • A role in a group create or alter statement requires qualification with a keyspace.

    User Action

    • Revise the statement to provide the necessary keyspace qualification.

    5221

    Role «role» cannot be specified at the «level» level.

    Reason

    • An attempt was made to specify a scope role as a collection role.

    User Action

    • Correct the role qualification in the statement.

    5230

    Role «role» does not take a keyspace.

    Reason

    • A keyspace qualification has been provided for a role that isn't qualified by keyspace in a grant or revoke role statement.

    • A keyspace qualification has been provided for a role that isn't qualified by keyspace in a group create or alter statement.

    User Action

    • Remove the qualification from the role that isn't qualified by keyspace.

    5240

    Keyspace «keyspace» is not valid.

    Reason

    • A keyspace qualification provided in a grant or revoke role statement was invalid.

    • A keyspace qualification provided in a group create or alter statement was invalid.

    User Action

    • Revise the statement to provide a valid keyspace qualification.

    5241

    Scope «scope» is not valid.

    Reason

    • The scope provided to qualify ˝scope_admin˝ role in a grant or revoke statement was not valid.

    User Action

    • Revise the statement to provide a valid scope qualification.

    5242

    Bucket «bucket» is not valid.

    Reason

    • The bucket provided to qualify a role in a grant or revoke statement was not valid.

    User Action

    • Revise the statement to provide a valid bucket qualification.

    5250

    Role «role» is not valid.

    Reason

    • An invalid role was provided in a grant or revoke role statement.

    • An invalid role was provided in a group create or alter statement.

    User Action

    • Revise the statement to provide a valid role.

    5260

    User «name» already has role «role» «bucket»

    5270

    «entity» «name» did not have role «role»

    Reason

    • An attempt was made to revoke a role from a user or group that was not held by the user or group.

    5280

    User «name» has no roles. Connecting with this user may not be possible

    Reason

    • The user has had all roles revoked.

    5281

    Group «name» has no roles.

    Reason

    • The group has had all roles revoked.

    5300

    Hash Table Put failed

    User Action

    • Contact support.

    5310

    Hash Table Get failed

    User Action

    • Contact support.

    5320

    Multiple UPDATE/DELETE of the same document (document key «key») in a MERGE statement

    Reason

    • During a merge statement a key was detected multiple times in update and/or delete operations.

    User Action

    • Contact support.

    5330

    Multiple INSERT of the same document (document key «key») in a MERGE statement

    Reason

    • The INSERT action of the MERGE statement had previously inserted the noted key. e.g. MERGE INTO default USING [{},{} AS source ON default.id IS VALUED WHEN NOT MATCHED THEN INSERT ('key',{}) ;]

    User Action

    • Revise the statement logic to ensure only unique keys are produced.

    5340

    An error occurred during WINDOW evaluation

    Reason

    • An expression in the window aggregate did not evaluate to a number.

    • The window order clause evaluation failed.

    • The window partitioning clause evaluation failed.

    User Action

    • Contact support.

    5350

    AdviseIndex: Error marshalling JSON.

    User Action

    • Contact support.

    5351

    Invalid advise results

    Reason

    • The results from an advisor session are not valid.

    User Action

    • Repeat the session.

    • Contact support.

    5360

    An internal error occurred during update statistics processing.

    User Action

    • Contact support.

    5370

    Unable to run subquery

    User Action

    • Contact support.

    5380

    Indexing leading key MISSING values are not supported by indexer.

    Reason

    • The index definition includes missing values for the leading key and this feature is not supported by the indexer.

    User Action

    • Revise the index definition to not include missing leading key values.

    • Contact support.

    5390

    Index «name» is not in memory

    Reason

    • The cost of an index scan could not be calculated as the index was not in memory.

    • Statistics for the index could not be updated as it was not in memory.

    User Action

    • Re-submit the request.

    • Contact support.

    5400

    System Collection 'N1QL_CBO_STATS' is required for UPDATE STATISTICS (ANALYZE)

    Reason

    • The system bucket N1QL_CBO_STATS does not exist and could not be created.

    User Action

    • Manually create the bucket and re-submit the request.

    • Contact support.

    5410

    index name «name» must be a string

    Reason

    • An index name in the index build statement was not a string value compliant with index naming requirements.

    • An index name in the update statistics statement was not a string value compliant with index naming requirements.

    User Action

    • Revise the statement to provide a valid index name.

    5411

    index «name» is not found

    Reason

    • The index specified in an index build statement does not exist.

    • The index specified in an update statistics statement does not exist.

    User Action

    • Revise the statement to provide a valid index name.

    5415

    Error with UPDATE STATISTICS for indexes («names»): «reason»

    User Action

    • Contact support

    5416

    Error parsing time string «string»

    5420

    Inner of nested-loop join «keyspace» cannot have more than 1000 documents without appropriate secondary index

    Reason

    • A nested loop join using a primary scan produced more than 1000 documents. This limit is imposed for resource usage and performance considerations as the inner leg of such a join may be executed repeatedly.

    User Action

    • Limit the number of documents accessed in this manner or create an appropriate secondary index to support the join.

    5430

    Invalid parameter (query vector) specified for vector function: <<msg>>.

    Reason

    • An invalid parameter (query vector) is specified for vector function: <<msg>>.

    User Action

    • Revise the vector function to use a proper parameter (query vector).

    5431

    Invalid parameter (probes) specified for vector function: <<msg>>.

    Reason

    • An invalid parameter (probes) is specified for vector function: <<msg>>.

    User Action

    • Revise the vector function to use a proper parameter (probes).

    5432

    Invalid parameter (rerank) specified for vector function: <<msg>>.

    Reason

    • An invalid parameter (rerank) is specified for vector function: <<msg>>.

    User Action

    • Revise the vector function to use a proper parameter (rerank).

    5433

    Total heap size for (Limit + Offset) exceeded maximum heap size allowed for vector index <<index>>.

    Reason

    • Limit and/or Offset specified as query parameters have values that exceeded maximum allowed values for vector index.

    User Action

    • Specify Limit/Offset as constants and re-submit the query.

    • Use values that do not exceed the maximum allowed value and re-submit the query.

    5434

    Invalid parameter (TopNScan) specified for vector function: <<msg>>.

    Reason

    • An invalid parameter (TopNScan) is specified for vector function: <<msg>>.

    User Action

    • Revise the vector function to use a proper parameter (TopNScan).

    5500

    Request has exceeded memory quota.

    Reason

    • The tracked memory required for the request exceeded the quota set for it.

    User Action

    • Review the statement execution plan for efficiency.

    • Review the volume of data the statement is expected to process and the operations used.

    • Increase the memory quota if appropriate.

    5501

    nil «param» parameter for evaluation

    User Action

    • Contact support.

    5502

    Unable to complete action after «count» attempts

    Reason

    • The indicated action was attempted a number of times without success.

    User Action

    • If the associated error indicates an infrastructure issue, verify all cluster resources are accessible, available and online.

    • Contact support.

    5503

    Key(s) in USE KEYS hint not found

    Reason

    • A key in a USE KEYS clause was not found.

    User Action

    • If necessary, revise the keys listed.

    5600

    Query node has run out of memory

    Reason

    • A node level memory quota was in effect and while trying to execute the request the limit was reached

    User Action

    • Verify the memory requirements of the request, possibly setting a request memory quota.

    • Retry the request with less concurrent activity.

    5601

    «entity» has run out of memory: requested «size», limit «limit»

    5700

    Failed to reconstruct value

    Reason

    • An error occurred reconstructing a value data spilled temporarily to disk during the request processing.

    User Action

    • Contact support.

    5701

    Invalid reconstructed value

    Reason

    • An error occurred reconstructing a value data spilled temporarily to disk during the request processing.

    User Action

    • Contact support.

    5702

    Failed to create spill file

    Reason

    • The request processing requires date be temporarily spilled to disk and the temporary file creation failed.

    User Action

    • Review the Query service temporary data directory and validate the filesystem is in good order with sufficient space to support the node's temporary data requirements.

    • Review the request memory quota, if in effect, and increase it if appropriate to avoid spilling.

    • Contact support.

    5703

    Failed to read from spill file

    Reason

    • An error occurred reading data spilled temporarily to disk during the request processing.

    User Action

    • Contact support.

    5704

    Failed to write to spill file

    Reason

    • An error occurred writing data temporarily to disk during the request processing.

    User Action

    • Contact support.

    5705

    Failed to determine spill file size

    Reason

    • An error occurred accessing the file used for data temporarily spilled to disk during the request processing.

    User Action

    • Contact support.

    5706

    Failed to seek in spill file

    5707

    Too many spill files

    Reason

    • The operation is attempting to use more files for temporarily spilling data to disk than is permitted.

    User Action

    • Increase your request memory quota.

    • Contact support.

    9999 Code (error)

    This is a general error.

    ICode Error Message Description

    9999

    Not implemented.

    Reason

    • The feature is not implemented in this edition.

    10xxx Codes (ds_auth)

    These errors are related to the Datastore authentication.

    ICode Error Message Description

    10000

    Unable to authorize user.

    Reason

    • Authorisation for the user failed with the indicated error.

    User Action

    • Ensure the request is using the correct credentials and the user holds the permissions necessary for the request.

    10003

    Missing or Incorrect port in input url.

    10004

    Issue with accessing node information for rest endpoint «endpoint»

    10005

    No FTS node in server «server»

    10100

    Functions of type «type» are only supported in Enterprise Edition.

    10101

    Function «name» not found

    Reason

    • An attempt was made to drop the named function but it did not exist.

    User Action

    • Ensure the function exists before attempting to drop it.

    10102

    Function «name» already exists

    Reason

    • An attempt was made to create a function with a name that was already defined.

    User Action

    • Use the OR REPLACE clause if the intention is to redefine the function.

    • Change the function name to be unique.

    10103

    Operation on function «name» encountered an unexpected error: «details».

    User Action

    • Contact support.

    10104

    Incorrect number of arguments supplied to function «name»

    User Action

    • Revise the statement to include the correct number of arguments to the function.

    10105

    Invalid function name «name»

    Reason

    • The namespace in the function name was invalid.

    • The scope in the function name did not exist.

    • The function name had an incorrect number of components.

    User Action

    • Revise the statement providing a valid function name.

    10106

    Could not access function definition for «where» because «what»

    User Action

    • Contact support.

    10107

    Could not «operation» function definition for «function»

    User Action

    • Contact support.

    10108

    «type» functions are disabled.

    Reason

    • The cluster's feature control flags disable the type of functions.

    • Problems with initialising the environment to run functions of the type prevent them being enabled.

    • Restrictions in the cluster deployment model disable the type of functions.

    10109

    Error executing function «name» «details»

    Reason

    • The error noted occurred whilst executing the function.

    User Action

    • Review the error for possible user actions and revise the statement and/or function as appropriate.

    • Contact support.

    10112

    Error executing function: «name»: «num» nested javascript calls

    Reason

    • Function execution reached the maximum permitted number of nested calls and was halted.

    User Action

    • Review your function code to ensure you don't have excess recursion.

    • Review your functions, flattening where possible so as to not exceed the limit.

    10113

    An error occurred executing an inner function.

    10114

    Invalid javascript library path: «path». Use a root level path, the same path as the function scope, or a local path ('./library')

    Reason

    • The path specified in a Javascript function creation statement was invalid.

    User Action

    • Revise the statement providing a path valid for Javascript libraries.

    10115

    Error loading function «name»

    Reason

    • An error occurred loading the body of a Javascript function.

    User Action

    • Review the error referenced for appropriate actions.

    • Contact support.

    10118

    «operation» is not supported for functions of type «type»

    10119

    Error getting queries inside function «name». «details»

    User Action

    • Contact support.

    10200

    «entity» resolves to «path» - «num» path parts are expected

    Reason

    • A bucket path was expected but the provided information did not resolve to a two part path.

    • A scope path was expected but the provided information did not resolve to a three part path.

    • A collection path was expected but the provided information did not resolve to a four part path.

    • A keyspace path was expected but the provided information did not resolve to a two or four part path.

    User Action

    • Review the request's ˝query_context˝ setting.

    • Revise the statement to provide a correct path.

    10201

    Invalid query_context specified: «details»

    Reason

    • The request's ˝query_context˝ contains the noted error.

    • The request's ˝query_context˝ contains too many parts.

    User Action

    • Correct the ˝query_context˝ value and try the request again.

    10202

    Bucket «name» does not have a default collection

    User Action

    • Contact support.

    10203

    No datastore is available

    User Action

    • Contact support.

    10300

    Max failures reached. Last error: «error»

    Reason

    • The process responsible for synchronising changes to the bucket in the node encountered more failures than the maximum tolerated.

    • The bucket was dropped outside of the node and the synchronisation endpoint was no longer available.

    User Action

    • If the bucket was dropped this error is expected.

    • Contact support.

    10301

    No healthy nodes found.

    Reason

    • The process responsible for synchronising changes to the bucket was unable to find a healthy node on which to find the bucket.

    User Action

    • Contact support.

    10302

    Streaming error

    Reason

    • The process responsible for synchronising changes to the bucket encountered an error reading the information stream from the orchestrator.

    User Action

    • Contact support.

    10303

    Authentication error: «details»

    Reason

    • The process responsible for synchronising changes to the bucket failed to connect to the orchestrator.

    User Action

    • Contact support.

    10304

    Failed to connect to host.

    Reason

    • The process responsible for synchronising changes to the bucket failed to connect to the orchestrator.

    User Action

    • Contact support.

    10305

    Mapping error: «details»

    User Action

    • Contact support.

    10306

    Streaming endpoint not found

    Reason

    • The process responsible for synchronising changes to the bucket in the node was unable to find the orchestrator endpoint for the bucket.

    • The bucket was dropped outside of the node and the synchronisation endpoint was no longer available.

    User Action

    • If the bucket was dropped this error is expected.

    • Contact support.

    10500

    Advisor: Session not found.

    Reason

    • An advisor function call was made with the action as ˝stop˝ and an unknown session specified.

    User Action

    • Verify the correct session is specified when stopping an index advisor session.

    10501

    Advisor: Invalid value for 'action

    Reason

    • An advisor function call was made with an invalid value for the ˝action˝ field.

    User Action

    • Refer to the documentation for valid values to pass to the advisor function.

    10502

    Advisor: missing argument for 'action

    Reason

    • An advisor function call was made with an object argument that was missing the ˝action˝ field.

    User Action

    • Refer to the documentation for valid arguments to pass to the advisor function.

    10503

    Advisor: Invalid arguments.

    Reason

    • An advisor function call was made with invalid arguments.

    User Action

    • Refer to the documentation for valid arguments to pass to the advisor function.

    10510

    Vector function <<name>> has invalid metric specification (<<metric>>).

    Reason

    • An invalid metric specification (<<metric>>) is used in vector function <<name>>.

    User Action

    • Revise the vector function to use a supported metric specification.

    10511

    Vector function <<name>> has invalid field specification (<<field>>).

    Reason

    • An invalid field specification (<<field>>) is used in vector function <<name>>.

    User Action

    • Revise the vector function to use a valid field specification.

    10512

    IsVector() function has invalid dimension specification (<<dimension>>).

    Reason

    • An invalid dimension specification (<<dimension>>) is used in IsVector() function.

    User Action

    • Revise the function parameter to use an integer for dimension specification.

    10513

    IsVector() function has invalid argument (<<msg>>).

    Reason

    • An invalid argument (<<msg>>) is used in IsVector() function.

    User Action

    • Revise the function parameter to use a supported argument.

    11xxx Codes (ds_sys)

    These errors are related to the Datastore system.

    ICode Error Message Description

    11000

    System datastore error «details»

    User Action

    • Contact support.

    11002

    Keyspace not found in system namespace

    Reason

    • A reference was made to a keyspace that doesn't exist in the system namespace.

    User Action

    • Refer to the documentation for valid keyspaces in the system namespace.

    11003

    System datastore : Not implemented «what»

    11004

    System datastore : Not supported «details»

    User Action

    • Contact support.

    11005

    System datastore : Index not found «details»

    User Action

    • Contact support.

    11006

    System datastore : This index cannot be dropped «details»

    User Action

    • Contact support.

    11007

    System datastore : Statement not found «details»

    Reason

    • An attempt was made to delete an unknown request from completed requests.

    User Action

    • Contact support.

    11008

    System datastore : «details»

    Reason

    • An operation on a remote node failed as detailed.

    User Action

    • Contact support.

    11009

    System datastore : unable to retrieve «what» from server

    User Action

    • Contact support.

    11010

    System datastore : unable to update «what» information in server

    User Action

    • Contact support.

    11011

    One or more documents were excluded from the «namespace» bucket because of insufficient user permissions. In an EE system, add the query_system_catalog role to see all rows. In a CE system, add the administrator role to see all rows.

    Reason

    • The request attempted to access the contents of a restricted access system keyspace and the user was not permitted to see all data.

    User Action

    • Ensure the request is run as a user with the correct privileges.

    11012

    System datastore : key «key» is not of the correct format for keyspace «keyspace»

    User Action

    • Contact support.

    11013

    The system namespace contains no buckets that contain scopes.

    User Action

    • Contact support.

    11015

    Node «node» not found

    User Action

    • Contact support.

    12xxx Codes (ds_cb)

    These errors are related to the Couchbase Datastore.

    ICode Error Message Description

    12000

    Cannot connect «details»

    Reason

    • On start-up the Query service was unable to connect to the authorisation service.

    User Action

    • Contact support.

    12002

    Namespace not found in CB datastore: «details»

    User Action

    • Contact support.

    12003

    Keyspace not found in CB datastore: «details»

    Reason

    • A keyspace referenced in the statement did not exist.

    User Action

    • Check all expected keyspaces have been created and are correctly referenced in the statement.

    12004

    Primary Index not found «details»

    12005

    Indexer not implemented «details»

    User Action

    • Contact support.

    12006

    Failed to get count for keyspace «details»

    User Action

    • Contact support.

    12008

    Error performing bulk get operation «details»

    Reason

    • An error occurred retrieving documents from the data service.

    User Action

    • Review the error detailed for possible user actions.

    • Contact support.

    12009

    DML Error, possible causes include «reason»

    Reason

    • An attempt was made to update a document but it was concurrently updated by another request.

    User Action

    • Review concurrent document update logic and retry the operation as appropriate.

    12011

    Failed to perform «operation» on key «key»

    Reason

    • A request to the data service to delete a key failed.

    User Action

    • Contact support.

    12012

    Failed to load indexes «indexes»

    12013

    This bucket type is not supported «details»

    Reason

    • An attempt was made to access a bucket of an an unsupported type through the Query service.

    User Action

    • Migrate all buckets to currently supported types.

    12015

    Index scan timed out

    Reason

    • The maximum time for a primary index scan was reached before producing any keys.

    User Action

    • Review the state and performance of the indexing nodes in the cluster.

    • Contact support.

    12016

    Index Not Found

    Reason

    • An attempt was made to alter or drop an index that didn't exist.

    User Action

    • Check the index exists before attempting to alter or drop it.

    • Check for a concurrent deletion of the index.

    12017

    Error getting random entry from keyspace

    Reason

    • An attempt to retrieve a document using the random document interface failed.

    User Action

    • Contact support.

    12018

    Unable to initialize authorization system as required

    Reason

    • The authorisation service was not initialised but is required by the datastore.

    User Action

    • Contact support.

    12019

    Audit stream handler failed

    User Action

    • Contact support.

    12020

    Bucket not found in CB datastore «bucket»

    Reason

    • An attempt was made to alter or drop a bucket that did not exist.

    User Action

    • Review the statement and ensure buckets exist beforehand.

    12021

    Scope not found in CB datastore «scope»

    User Action

    • Contact support.

    12022

    Failed to get size for keyspace «details»

    Reason

    • An error was encountered acquiring the bucket statistics from the data service.

    User Action

    • Contact support.

    12023

    Connection security config not provided. Unable to load bucket «bucket»

    User Action

    • Contact support.

    12024

    Error while creating system bucket «details»

    Reason

    • Creation of the N1QL_SYSTEM_BUCKET used for storing statistics for query planning failed.

    User Action

    • Review the error detailed for possible user actions.

    • Contact support.

    12025

    Error while creating scope «details»

    Reason

    • An attempt was made to create a scope with a name that already existed.

    User Action

    • Review the statement and ensure scope names are unique within the bucket.

    12026

    Error while dropping scope «details»

    Reason

    • An attempt was made to create a scope with a name that did not exist.

    User Action

    • Review the statement and ensure scopes exist beforehand.

    12027

    Error while creating collection «name»

    Reason

    • Invalid options were passed in a CREATE COLLECTION statement.

    • An invalid value was passed for the ˝maxTTL˝ option in a CREATE COLLECTION statement.

    User Action

    • Revise the statement to provide a valid options.

    12028

    Error while dropping collection «details»

    Reason

    • An attempt was made to drop a collection that did not exist.

    User Action

    • Review the statement and ensure collections exist beforehand.

    12029

    Error while flushing collection «name»

    Reason

    • An attempt was made to flush a collection but it encountered an error.

    User Action

    • Review the error detailed for possible user actions.

    • Contact support.

    12030

    «operation» of binary document is not supported

    Reason

    • An attempt was made to operate on a binary document.

    User Action

    • Revise the statement to ensure only JSON documents are included.

    • Check the collection contains documents of the expected format.

    12031

    Durability is not supported.

    User Action

    • Contact support.

    12032

    Preserve expiration is not supported.

    User Action

    • Contact support.

    12033

    CAS mismatch

    Reason

    • A concurrent update of a document was detected.

    User Action

    • Retry the operation.

    12034

    MC error «details»

    Reason

    • A data service operation failed.

    User Action

    • Review the error for possible user actions.

    • Retry the request if appropriate.

    • Contact support.

    12035

    Index «name» exists but is not a primary index

    Reason

    • A DROP PRIMARY INDEX indicated a specific index but that index was not a primary index.

    User Action

    • Review the statement and use the PRIMARY qualifier only when dropping a primary index.

    12036

    Error in INSERT of key: «key»

    Reason

    • A data service error occurred whilst adding a document.

    User Action

    • Review the error for possible user actions.

    • Retry the request if appropriate.

    • Contact support.

    12037

    User does not have access to «entity»

    Reason

    • An attempt was made to access a bucket the user does not have access too.

    User Action

    • Review the request and bucket access requirements.

    12038

    Invalid option «option»

    Reason

    • An invalid option was specified in a create or alter bucket statement.

    • An invalid option was specified in a create or alter sequence statement.

    User Action

    • Review the statement and correct the options passed.

    12039

    Invalid value for «option»

    Reason

    • An invalid option value was specified in a create or alter bucket statement.

    • An invalid option value was specified in a create or alter sequence statement.

    • A non-integer value was specified for the ˝maxTTL˝ option in a create collection statement.

    User Action

    • Review the statement and correct the options passed.

    12040

    Invalid compressed document received from datastore

    User Action

    • Contact support.

    12041

    Bucket is closed: «message»

    User Action

    • Contact support.

    12042

    Sub-doc get operation failed

    12043

    Sub-doc set operation failed

    Reason

    • A sub-document update of a sequence document failed.

    User Action

    • Contact support.

    12044

    Error while dropping system bucket «details»

    Reason

    • An error occurred dropping the system bucket ˝N1QL_SYSTEM_BUCKET˝.

    User Action

    • Review the error detailed for possible user actions.

    • Contact support.

    12045

    Bucket «bucket» already exists.

    Reason

    • A CREATE BUCKET statement attempted to create a bucket that already existed.

    User Action

    • Review the statement and ensure bucket names are unique.

    12046

    All indexer nodes must be version <<ver>> or later (<<cause>>).

    Reason

    • An indexer with version lower than <<ver>> is found, cannot support '<<cause>>'.

    User Action

    • Upgrade all indexer nodes to be at least version <<ver>>.

    12047

    Primary index on system collection not available for bucket «bucket»

    Reason

    • Primary index on system collection for bucket <<bucket>> is taking longer than expected to be created.

    User Action

    • Retry action.

    • Contact support.

    13xxx Codes (ds_view)

    These errors are related to the Datastore view.

    ICode Error Message Description

    13012

    Error retrieving cluster «what»

    Reason

    • An error occurred obtaining the cluster information from the orchestrator.

    User Action

    • Review the cluster state and diagnostic logs.

    • Contact support.

    13013

    Unable to retrieve roles from server.

    User Action

    • Contact support.

    13014

    User does not have credentials to «action». Add role «role» to allow the statement to run.

    User Action

    • Submit the request as a user with the necessary privileges.

    • Review the user's privileges.

    13015

    Unable to retrieve buckets from server.

    User Action

    • Contact support.

    13016

    Unable to determine admin credentials

    Reason

    • The indicated error occurred obtaining the correct cluster administration credentials.

    User Action

    • Contact support.

    13017

    Datastore not set

    User Action

    • Contact support.

    13018

    Invalid datastore uri: «uri»

    Reason

    • The datastore URI received from the orchestrator was invalid.

    User Action

    • Contact support.

    14xxx Codes (ds_gsi)

    These errors are related to the Datastore Global Secondary Index.

    ICode Error Message Description

    14000

    Unacceptable size for index scan: «size»

    User Action

    • Contact support.

    15xxx Codes (ds_file)

    These errors are related to the Datastore files.

    ICode Error Message Description

    15000

    Error in file datastore «details»

    15001

    Namespace not found in file store «details»

    15002

    Keyspace not found «details»

    15003

    Duplicate Namespace «details»

    15004

    Duplicate Keyspace «details»

    15005

    No keys to insert «details»

    15006

    Key Exists «details»

    15007

    DML Error «details»

    15008

    Keyspace path must be a directory «details»

    15009

    Index not found «details»

    15010

    Operation not supported «details»

    15011

    Primary Index cannot be dropped «details»

    16xxx Codes (ds_other)

    These errors are related to other Datastore aspects.

    ICode Error Message Description

    16000

    Error in datastore «details»

    16001

    Namespace Not Found «details»

    16002

    Keyspace Not Found «details»

    16003

    Not Implemented «details»

    16004

    Index not found «details»

    16005

    Index Cannot be dropped «details»

    16006

    Not supported for this datastore «details»

    16007

    Key not found «details»

    16020

    Inferencer not found «details»

    16021

    Datastore «name» contains no buckets that contain scopes.

    16022

    Keyspace does not support scopes: «scopes»

    16030

    StatUpdater not found

    16040

    Keyspace does not support flush: «keyspace»

    16050

    Index not found

    Reason

    • Sequential scans were disabled using the feature control flags.

    User Action

    • If desired, revise the feature control flags to enable sequential scans.

    • Contact support.

    16051

    «operation» not supported for scan

    Reason

    • The sequential scan indexer does not support index management and maintenance operations.

    • A sequential scan doesn't support aggregate operations.

    User Action

    • Don't attempt index management & maintenance statements using the sequential scan indexer.

    • Contact support.

    16052

    Inactive scan in Fetch

    User Action

    • Contact Support.

    16053

    Invalid scan in «operation»

    User Action

    • Contact Support.

    16054

    Scan continuation failed

    Reason

    • A KV range scan operation could not be continued.

    User Action

    • Contact Support.

    16055

    Scan creation failed

    Reason

    • A KV range scan operation could not be created to support a sequential scan.

    User Action

    • Review the associated error for appropriate actions.

    • Consider creating an index to avoid the sequential scan.

    • Contact support.

    16056

    Scan cancellation failed

    16057

    Scan exceeded permitted duration

    Reason

    • A sequential scan operation did not complete within the permitted time.

    User Action

    • Review the request ˝timeout˝ parameter.

    • Review any associated error for appropriate actions.

    • Review cluster availability and load.

    • Confirm end client is consuming results produced by the Query service in a timely manner.

    16058

    Failed to get collection ID for scan

    User Action

    • Contact support

    16059

    Failed to get connection for scan

    User Action

    • Contact support

    16060

    Timed out polling scan for data

    User Action

    • Contact support

    16061

    A fatal error occurred in scan processing

    User Action

    • Contact support

    16062

    Scan failed

    Reason

    • The v-bucket map available to a sequential scan was incomplete or contained errors.

    User Action

    • Review concurrent cluster management operations.

    • Review the diagnostic logs for further information.

    • Contact support.

    16063

    Operation failed on scan spill file

    Reason

    • A sorted sequential scan needed to spill data to disk temporarily but could not do so.

    User Action

    • Review the Query service temporary data directory and validate the filesystem is in good order with sufficient space to support the node's temporary data requirements.

    • Contact support

    16064

    Failed to validate document key

    User Action

    • Contact support.

    16065

    Invalid scan response received

    User Action

    • Contact support.

    17xxx Codes

    ICode Error Message Description

    17001

    Transactions are not supported on «type» store

    17002

    «statement» statement is not supported «qualifier» transaction

    Reason

    • A statement was issued to start a transaction whilst already in a transaction.

    • A statement was issued to end or modify a transaction whilst not in a transaction.

    User Action

    • Review the application's order of operations.

    17003

    advisor function is not supported within the transaction

    Reason

    • An attempt was made to use the advisor function whilst in a transaction.

    User Action

    • Review the application's order of operations.

    17004

    Transaction context error

    User Action

    • Contact support.

    17005

    Transaction statement is out of order

    Reason

    • A request was attempted with a value for the ˝txstmtnum˝ that was not in relative order within the transaction.

    User Action

    • Review the application logic to ensure a correctly ordered ˝txstmtnum˝.

    17006

    Start Transaction statement error «details»

    User Action

    • Review the included details for appropriate actions.

    • Contact support.

    17007

    Commit Transaction statement error «details»

    User Action

    • Review the included details for appropriate actions.

    • Contact support.

    17008

    Rollback Transaction statement error «details»

    User Action

    • Review the included details for appropriate actions.

    • Contact support.

    17009

    «name» savepoint is not defined

    Reason

    • A save point referenced in a transaction rollback statement did not exist.

    User Action

    • Review the application's order of operations.

    • Ensure the a valid save point name is used.

    17010

    Transaction timeout

    Reason

    • A transaction was active for longer than the permitted maximum time.

    User Action

    • Review the operations in the transaction ensuring they can be completed within the time limit.

    • Review the transaction time limit setting.

    17011

    Transaction is released

    Reason

    • An attempt was made to access a transaction that had been released.

    User Action

    • Review other errors raised during the transaction for possible actions.

    • Review the application's order of operations.

    17012

    Duplicate Key «details»

    Reason

    • A key in an insert statement already existed.

    User Action

    • Ensure uniqueness of document keys.

    • Review concurrent activity that may lead to duplicates.

    17013

    Parallel execution of the statements are not allowed within the transaction

    User Action

    • Contact support.

    17014

    Key not found

    17015

    «op» cas (actual: «actual», expected:«expected») mismatch for key: «key»

    Reason

    • The operation encountered a check-and-set value mismatch for the noted key. This indicates another update was successful between the document being read and this update operation.

    User Action

    • Review the transaction operations and concurrent activity.

    17016

    Transaction memory («used») exceeded quota («quota»)

    User Action

    • Review the transaction operations and quota setting.

    17017

    Transaction fetch error

    User Action

    • Contact support.

    17018

    Failed post commit

    Reason

    • A transaction failed during post commit operations for the given reason

    User Action

    • Contact support.

    17019

    Commit was ambiguous

    Reason

    • A transaction commit operation could not be completed ensuring a consistent, precise outcome.

    User Action

    • Contact support.

    17020

    Transaction staging error

    Reason

    • The staging of a write for a transaction failed.

    User Action

    • Contact support.

    17021

    Transaction queue is full

    Reason

    • Another request for the transaction was executing and server could not queue any more transaction requests when this request was received.

    User Action

    • Revise the concurrent requests submitted for a single transaction.

    • Review the duration of requests in the transaction.

    17022

    Failed post commit

    Reason

    • A transaction failed during post commit operations for the given reason

    User Action

    • Review the details for possible user action.

    17023

    XATTRs not permitted in a transaction

    Reason

    • Document XATTRs may not be used in a transaction.

    User Action

    • Confirm OPTIONS for INSERT/UPSERT do not specify XATTRs.

    • Remove XATTRs from the statement and re-submit.

    • Submit the statement outside of a transaction.

    17096

    GC agent error

    Reason

    • An agent handling the transaction encountered an error during the noted operation.

    User Action

    • Contact support.

    17097

    Transactions are not supported in Community Edition

    Reason

    • A transaction operation was attempted in a Community Edition server.

    17098

    Memory allocation error: «details»

    Reason

    • An internal memory pool used for transactions was exhausted.

    User Action

    • Contact support.

    17099

    A transaction error occurred

    User Action

    • Contact support.

    18xxx Codes

    ICode Error Message Description

    18010

    Unexpected error in dictionary: «error»

    User Action

    • Contact support.

    18020

    GSI Indexer does not support collections - «reason»

    User Action

    • Contact support.

    18030

    GSI Index «name» does not support collections

    User Action

    • Contact support.

    18040

    Error accessing system collection - «details»

    User Action

    • Contact support.

    18050

    Cound not «what» data dictionary entry for «name» due to «reason»

    18060

    Decoded dictionary entry for keyspace «keyspace» does not match «keyspace»

    18070

    Dictionary entry «entry» for <<name>> is missing field <<field>>

    User Action

    • Contact support.

    19xxx Codes

    ICode Error Message Description

    19000

    Virtual Keyspace : Not supported «details»

    19001

    Virtual Keyspace : Not yet implemented «details»

    19002

    Virtual keyspace : Indexer not found «details»

    19003

    Virtual indexer : Index not found «details»

    19004

    Virtual Indexer : Not supported «details»

    19005

    Virtual index : Not yet implemented «details»

    19006

    Virtual Index : Not supported «details»

    19007

    Scope not found in virtual datastore «details»

    19009

    Error while creating scope «details»

    19010

    Error while dropping scope «details»

    19011

    Keyspace not found in CB datastore: «details»

    19012

    Error while creating collection «details»

    19013

    Error while dropping collection «details»

    19100

    Sequence support is not enabled for «bucket»

    Reason

    • An attempt was made to define a sequence in a bucket that lacks a system collection.

    User Action

    • Contact support.

    19101

    Create failed for sequence «name»

    Reason

    • Invalid options were specified in a CREATE SEQUENCE statement.

    • An error occurred storing the sequence information in the system collection.

    User Action

    • Correct the sequence options according to the referenced error.

    • Contact support.

    19102

    Alter failed for sequence «name»

    Reason

    • Invalid options were specified in an ALTER SEQUENCE statement.

    • An error occurred storing the sequence information in the system collection.

    User Action

    • Correct the sequence options according to the referenced error.

    • Contact support.

    19103

    Drop failed for sequence «name»

    User Action

    • Contact support.

    19104

    Invalid range «min»-«max»

    Reason

    • The range specified in the sequence options was invalid.

    User Action

    • Review the statement and correct the range specification.

    19105

    Invalid cache value «value»

    Reason

    • A sequence cache value less than one was specified.

    User Action

    • Review the statement and correct the cache specification.

    19106

    Sequence «name» not found

    User Action

    • Review the statement ensuring the correct sequence is referenced and that it exists.

    19107

    Error accessing sequence

    User Action

    • Contact support.

    19108

    Sequence «name» already exists

    Reason

    • An attempt was made to create a sequence with the same name as an existing sequence.

    User Action

    • Review the statement ensuring a unique name is used.

    • Revise the statement to include the IF NOT EXISTS syntax.

    19109

    Error accessing sequences cache monitor data

    User Action

    • Contact support.

    19110

    Invalid sequence data

    Reason

    • The persisted data for a sequence was invalid.

    User Action

    • Ensure no user activity has directly altered any data in the system collection.

    • Contact support.

    19111

    Sequence «name» has reached its limit

    Reason

    • A sequence was defined to not cycle and was unable to generate further values having reached its defined limit.

    User Action

    • Review the sequence definition and usage. A sequence may be altered to change the limits for generated values.

    19112

    Cycle failed for sequence «name»

    19113

    Invalid sequence name «name»

    User Action

    • Contact support.

    19114

    Sequences cannot be used in read-only requests

    Reason

    • A read-only request attempted to use a sequence. Use of a sequence updates meta-data contravening the read-only request specification.

    User Action

    • Avoid sequences in read-only requests.

    19115

    Cache size «size» below recommended minimum

    Reason

    • A sequence cache value below the recommended minimum size was specified. Sequences with smaller caches result in higher I/O and may suffer with increased latency as a result.

    User Action

    • Review your sequence requirements and adjust the cache size as required.

    19116

    Sequence name resolves to «name» - check query_context?

    User Action

    • Contact support.

    19117

    Drop failed for sequences «sequences»

    Reason

    • The clean-up operation for sequences belonging to a scope that has been dropped encountered the noted error.

    User Action

    • Contact support.

    19118

    Sequence previous value cannot be accessed before next value generation.

    Reason

    • A statement attempted to access the previous sequence value before the first value has been generated for it on the Query service node.

    User Action

    • Review your logic and if necessary ensure that sequences generate values before attempting to access the previous value.

    19200

    Failed to create a new request to «sessions url»

    19201

    Failed to send the request to «sessions api» to get JWT

    19202

    Authorization failed when establishing natural language session

    User Action

    • Verify the natural language processing credentials supplied in the request.

    • Create a Couchbase cloud account if necessary.

    19203

    Error reading the response from «sessions api»

    19204

    Unmarshalling response from «sessions api» failed:

    19205

    Error parsing "expiresAt": «expiresAt»

    19206

    Error marshalling schema information for prompt:

    19207

    Error marshalling prompt for chat completions API request

    19208

    Couldn't send chat completions request to «chat completions api»

    19209

    Chat completions request failed with status «http-status-code»

    Reason

    • Status 429: Rate limited. The natural language processing facilities are limiting the number of requests.

    • Status 404: Unauthorized. Authorization for natural language processing failed.

    User Action

    • Status 429: Retry later.

    • Status 404: Verify the credentials provided for natural language processing.

    19210

    Error reading response stream from chat completion API «url»

    19211

    Error unmarshalling chat completions response

    19212

    LLM processing failed

    Reason

    • "natural" parameter is not a valid prompt or doesn't prompt for a SELECT query.

    • The natural language statement is not a valid prompt or doesn't prompt for a SELECT query.

    User Action

    • Review the embedded "reason" field for more information on the failure.

    • Try rewording your request or revising the keyspace information provided.

    19213

    Natural Language request expects «param» request parameter to be set

    Reason

    • "natural_cred", "natural_context" and "natural_orgid" parameters are required when sending a request using the "natural" parameter

    • The options "cred", "keyspaces" and "orgid" are required in the statement when the "natural_" parameters are not supplied.

    19214

    Statement generation failed: «failure»

    Reason

    • Syntax error in generated statement.

    • LLM returned an empty response

    User Action

    • Examine the «failure», adjust and re-submit as a direct statement execution request if possible.

    19215

    Error in keyspace list provided for natural language processing

    Reason

    • Validation of the "natural_context" parameter failed for the reason specified.

    • Validation of the "keyspaces" option failed for the reason specified.

    User Action

    • Revise the "natural_context" parameter.

    • Revise the "keyspaces" option.

    19216

    Schema inferring failed for keyspace «keyspace»

    Reason

    • A keyspace the list of keyspaces passed for natural language processing doesn't exist in the cluster.

    User Action

    • Ensure all keyspaces provided for natural language processing exist.

    19217

    Organization «organization» not found

    Reason

    • The organisation specified in the "natural_orgid" parameter was not found by the chat completions API.

    • The organisation specified in the "orgid" option was not found by the chat completions API.

    19218

    Access to organisation «organization» is not authorized or collison in JWT refresh with an external client

    Reason

    • Organisation exists but the natural language processing credentials lack permission to access it.

    • Concurrent JWT refresh by external clients.

    19219

    Failed to create a new request to «chat completions api»

    19220

    Too many waiters, dropping the request

    Reason

    • Natural language requests are throttled as there are no more free slots in the waiting queue

    User Action

    • Retry the request later.

    19221

    Timed out waiting to be processed.

    Reason

    • Natural language request timed out waiting to be processed

    User Action

    • Retry the request later.

    19222

    Natural language request processing is disabled.

    Reason

    • The processing of natural language requests has been disabled.

    User Action

    • Enable natural language request processing before submitting a natural language request.

    19223

    Too many keyspaces specified.

    Reason

    • The "natural_context" parameter specifies more than the maximum permitted number of keyspaces.

    • The "keyspaces" option specifies more than the maximum permitted number of keyspaces.

    User Action

    • Revise the "natural_context" parameter or "keyspaces" option.

    20xxx Codes

    ICode Error Message Description

    20000

    Auto Update Statistics is not supported in Community Edition. It is an enterprise level feature.

    Reason

    • An Auto Update Statistics related operation was attempted on a Community Edition Couchbase cluster.

    User Action

    • Consult the documentation for the feature you are trying to use.

    20001

    Auto Update Statistics is not initialized for the node. It is only available on clusters migrated to a supported version.

    Reason

    • An Auto Update Statistics related operation was attempted on a cluster that is not fully migrated to a version that supports it.

    User Action

    • Migrate the Couchbase cluster to a version that supports Auto Update Statistics.

    20002

    Error accessing Auto Update Statistics information from storage.

    User Action

    • Retry the operation again. Or contact support.

    20003

    Invalid schema detected in the Auto Update Statistics settings document.

    Reason

    • The schema validation check failed when an attempt was made to INSERT/UPSERT/UPDATE a document in system:aus or system:aus_settings.

    User Action

    • Consult the documentation on the valid schema for Auto Update Statistics settings documents.

    20004

    Error «action» Automatic Update Statistics settings document.

    User Action

    • Retry the operation again. Or contact support.

    20005

    Invalid document key «key» for Auto Update Statistics settings document.

    Reason

    • An invalid document key was detected when an operation or SQL++ statement was run against system:aus or system:aus_settings.

    User Action

    • Consult the documentation on the valid document key format for Auto Update Statistics settings documents.

    20006

    Error during scheduling the Auto Update Statistics task.

    Reason

    • An error occurred during scheduling the Auto Update Statistics task.

    User Action

    • Contact support.

    20007

    Error during «operation» of Auto Update Statistics task.

    User Action

    • Contact support.

    20008

    Auto Update Statistics task's Evaluation phase for «keyspace» encountered an error.

    User Action

    • Observe if the error occurs again in future runs of the Auto Update Statistics task. If it occurs frequently, contact support.

    20009

    Auto Update Statistics task's Update phase for «keyspace» encountered an error.

    User Action

    • Observe if the error occurs again in future runs of the Auto Update Statistics task. If it occurs frequently, contact support.

    20010

    The Auto Update Statistics task was not started due to existing load on the node.

    Reason

    • The Auto Update Statistics task was not started as the load factor of the Query node was too high to handle the additional workload of the task.

    User Action

    • Observe if the error occurs again in future runs of the Auto Update Statistics task. If it occurs frequently, the set schedule for Auto Update Statistics might not be suitable for the workload.

    • Approach revising the schedule.

    • Contact support.

    20011

    Scheduled window of the Auto Update Statistics task exceeded.

    User Action

    • Observe if the error occurs again in future runs of the Auto Update Statistics task. If it occurs frequently, the set scheduled window for Auto Update Statistics might not be long enough. Approach revising the start and end time of the schedule.

    20012

    Unexpected error in Auto Update Statistics. «message»

    User Action

    • Contact support.

    See Also