Error codes

更新时间:
复制 MD 格式

OpenSearch returns an error code and an error message when a request fails. Use this reference to identify the cause and take corrective action.

Common errors

The following errors occur most frequently. Each entry includes the cause and the steps to resolve it.

Error codeCause and resolution
1000Request timed out. Retry the request. If the error persists, submit a ticket.
2112The fields used in business sorting are not fully included in the index fields. Search results are not affected, but update the schema to eliminate this warning.
3007API calls exceed the rate limit. Reduce the call frequency.
4003Signature verification failed. To debug: use the sample document to verify you get the same signature. If the signature matches, confirm that common parameters (uppercase) are sorted alphabetically before request parameters (lowercase), and that encoding rules for spaces and special characters are followed. See the authorization documentation for details.
4007Failed to parse the JSON body. The JSON contains double quotation marks (") or non-printable characters. Escape the characters or add a filter condition, then retry.
4010Invalid timestamp. Set the TimeStamp parameter to the current time in the correct format. Timestamps have a validity period.
5001User not found. This usually means the AccessKey pair or API endpoint is invalid. Verify both and retry. To find the API endpoint: log in to the OpenSearch console, go to Instance Management, click Manage in the Actions column, and check the API Endpoint section on the Instance Details page.
5008AccessKey pair is disabled. Enable it on the AccessKey Pair page of the Resource Access Management (RAM) console.
6013The sum of start and hit exceeds 5,000. For deep pagination, use the SCROLL operation with search_type=scan. See the API reference for details.
6015Request dropped because logical computing unit (LCU) consumption per second exceeded the purchased quota. To increase the quota: in the OpenSearch console, go to Instance Management, find the application, and choose More > Scale Up in the Actions column.
6127The request references attribute fields not configured in the application schema. Update the schema using offline changes, then retry.
7500Internal server error. Submit a ticket.

System errors (1000–1999)

Error codeDescription
1000Internal error.
1001Template not found.
1003Invalid index type.
1004Service unavailable. Try again later.

Application-related errors (2000–2999)

Error codeDescription
2001Application not found.
2002Application already exists.
2003Number of applications exceeds the limit.
2004Invalid application name. The name can be up to 30 characters and can contain letters, digits, and underscores (_).
2005Application name is required.
2006New application name is required.
2007Description exceeds the length limit. The description can be up to 300 characters.
2008Invalid summary parameter.
2009Failed to update the application status.
2010Application is paused.
2011Application is frozen.
2012Application is not started.
2013Failed to delete the application. The application does not exist.
2014Failed to upload the file.
2016Region is not specified.
2017The application does not belong to the current region.
2099This operation is not supported.
2101Expression not found.
2102Expression name already exists.
2103Number of expressions in the application exceeds the limit.
2104Invalid expression name. The name can be up to 30 characters and can contain letters, digits, and underscores (_).
2105Expression name is required.
2106New expression name is required.
2107Expression description exceeds the length limit. The description can be up to 300 characters.
2108Invalid expression description format.
2109Invalid expression format.
2110Expression exceeds the length limit.
2111Expression ID is required.
2112Invalid expression.
2113Expression is required.
2114Operation error.
2201Rough sort expression name is required.
2202Rough sort expression name already exists.
2203Number of rough sort expressions exceeds the limit.
2204Invalid rough sort expression name. The name can contain only letters, digits, and underscores (_).
2205Rough sort expression name exceeds the length limit.
2206Rough sort field must be numeric.
2207Rough sort expression not found.
2208Invalid rough sort expression. Make sure fields are specified in the expression.
2209Invalid weight in the rough sort expression. The weight must be a non-zero number between -100,000 and 100,000. FLOAT values are precise to six decimal places.
2210The name is reserved by the default rough sort expression.
2211The timeliness() function parameter is not of the INT type.
2112Invalid sort expression.
2551The drop-down suggestion rule specified in the query does not exist.

Document-related errors (3000–3999)

Error codeDescription
3001Document is required.
3002Document size exceeds the limit.
3003Number of documents exceeds the limit.
3004Failed to save the document.
3005Invalid document format.
3006Invalid document processing command.
3007Too many requests in a short period.
3008Document size is too large.
3009Document ID is required.
3011Pushing documents via API is not supported when an ApsaraDB RDS for MySQL or MySQL data source is configured.
3012Resource not found.
3013Document push rate exceeds the application limit.
3014Document push rate exceeds the system limit.
3015Number of documents pushed per request exceeds the limit.
3016Total number of documents in the application exceeds the limit.

Authorization-related errors (4000–4999)

Error codeDescription
4001Authentication failed.
4002Signature is required.
4003Signature verification failed.
4004SignatureNonce is required.
4005SignatureNonce value is not unique.
4006SignatureNonce verification failed.
4007Failed to parse the JSON format.
4008Username is required. Check that the domain name is correct.
4009User ID is required.
4010Invalid timestamp.
4011This operation is not allowed for a demo account.
4012The specified table does not exist.
4013Invalid timestamp format.
4014Timestamp parameter is required.
4020RAM user authentication failed.

User-related errors (5000–5999)

Error codeDescription
5001User not found.
5002Invalid username.
5003User login is required.
5004Account has overdue payments.
5005OpenSearch is not activated. Activate the service on the Alibaba Cloud official website.
5006Application is frozen due to overdue payments.
5008AccessKey pair is disabled.
5009User is deleted.
5010AccessKey pair is disabled.
5011Multiple users are registered with the same email address.
5012CODE_USER_ALIYUN_USER_ID_INVALID. No error message is returned.
5013CODE_USER_ALIYUN_BID_INVALID. No error message is returned.
5014CODE_USER_CLIENT_ID_INVALID. No error message is returned.
5015CODE_USER_ID_INVALID. No error message is returned.
5100Not authorized to perform operations in this region.

Search-related errors (6000–6999)

Error codeDescription
6001Search query is required.
6002Invalid keyword for key search.
6003Invalid keyword for field search.
6004Complex query is empty.
6005Invalid field.
6006Too many application names in the request.
6007Total number of indexes per template in a multi-index query exceeds the limit.
6008Failed to parse the request due to a syntax error.
6009Query clause is too long. Use the filter clause instead — it supports up to 4 KB. Alternatively, use a combined index to group multiple TEXT or SHORT_TEXT fields into a single index.
6010Invalid rerank size.
6011Invalid SignatureNonce format.
6013The sum of start and hit exceeds the limit. Use the SCROLL operation when start + hit > 5,000.
6014Request dropped because the system is busy.
6015Request dropped because LCU consumption exceeds the purchased quota.
6016Number of query hits exceeds the limit.
6017The scroll parameter requires search_type=scan.
6018scroll is specified but search_type is not.
6019Failed to parse the scroll_id parameter.
6020Invalid value for the scroll parameter.
6021The aggregate, sort, and distinct clauses are not supported in scroll requests.
6022scroll_id has expired.
6024Invalid value for the hit parameter in drop-down suggestions.
6031Invalid value for the abtest parameter.
6033Invalid value for the re_search parameter.
6034Invalid value for the biz parameter.
6100Search query is empty.
6101The index field in the query does not exist.
6102Invalid numeric range in the query clause.
6103The expression in the filter clause does not return a BOOLEAN value.
6104The expression in the sort clause returns a BOOLEAN value, which is not allowed.
6105Duplicate expressions in the sort clause.
6106Invalid query.
6107A statistical function expression cannot return a boolean or string.
6108The range in a statistical function is not in ascending order.
6109Invalid return type of the range expression in a statistical function.
6110Statistical function not found.
6111Invalid statistical function.
6112Invalid query clause.
6113Invalid filter clause.
6114Invalid aggregate clause.
6115Invalid sort clause.
6116Invalid distinct clause.
6117Query contains unknown clauses.
6118Syntax error.
6119Invalid dist_count value in the distinct clause. The value must be an integer greater than 0.
6120Invalid dist_times value in the distinct clause. The value must be an integer greater than 0.
6121Invalid reserved value in the distinct clause. The value must be true or false.
6122distinct_key is not specified in the distinct clause.
6123Invalid grade value in the distinct clause. The value cannot be blank or non-numeric.
6124Invalid distinct value in the distinct clause. The value must be in the range (0, 2].
6125Invalid max_item_count value in the distinct clause. The value must be an integer greater than 0.
6126Invalid update_total_hit value in the distinct clause. The value must be true or false.
6127The request references attribute fields not configured in the application schema. Update the schema using offline changes, then retry.
6128Data types of operands on either side of the binary operator do not match.
6129Both expressions on either side of a binary operator cannot be constants.
6130Invalid value type in the binary logic expression. The value must be of the BOOLEAN type.
6131STRING values in the binary expression are not supported.
6132ARRAY values in the binary expression are not supported.
6133Invalid value type for bit manipulation.
6134Invalid data type returned by the constant expression.
6135Invalid value type for the constant expression. LITERAL field values in the filter clause must be enclosed in double quotation marks (").
6140Aggregate clause syntax error. The SUM function is not supported for LITERAL field types.
6300Constant expression type must be an integer or floating-point number.
6301Operand for bitwise negation must be an integer.
6302Operand for negation must be a number.
6303Operand for logical NOT must be a number.
6304Invalid operand type for the binary operation.
6305Invalid binary operator.
6306Invalid parameter type for the function.
6307Function is not defined.
6308Invalid number of parameters for the function.
6309Invalid array function.
6310No filterable field found.
6311An array field is used as a single-value field.
6312A single-value field is used as an array field.
6313Invalid subscript for the array field. The value must be 0 or greater.
6314Invalid field type.
6315The specified index field does not exist.
6316No index specified in the query.
6317A formula is used more than once in the filter clause. Each formula can appear only once per filter clause.
6318Failed to parse the formula syntax.
6400Sort script not found.
6450Error occurred while running the script.
6500The search syntax references fields that do not exist.
6501No index data in the online system.
6502Invalid query syntax.
6503The default operator OR is not supported.
6504Accurate statistics are not supported.
6505Invalid rank size.
6506Too many terms returned after query analysis.
6601An index field appears in more than one rule. Each index field can belong to only one rule.
6602No search query specified (for example, default:"" is set).
6603The index field in the query is not defined in any query analysis rule.
6604Keyword is not enclosed in single quotation marks. Valid format: default:'xxx'.
6605Keyword is enclosed in double quotation marks. Query analysis rules cannot be applied.
6606The search query does not include the index to be analyzed.
6607Invalid format for the disable parameter.
6608The index field to disable does not exist.
6609The feature list to disable does not exist.
6610Query is empty after analysis. This may be because the original query is empty or contains only stop words.
6611Index field is required in the query.
6612term_weight makeup data failed. Intervention data did not take effect.
6613Number of terms in the query clause exceeds the limit of 256.

Data processing errors (7000–7999)

Error codeDescription
7202Invalid command. Only UPDATE, ADD, and DELETE commands are supported.
7301Primary key field not found. Data push failed because the document has no primary key value.
7302Data type mismatch. Data push failed because the primary key value is invalid.
7303Multiple primary key values in the document. Data push failed because a document can have only one primary key value.
7304Primary key value is required. Data push failed because the primary key value is empty.
7305Table does not exist in the current application. Data push failed because the table name is not recognized.
7500Internal error. Submit a ticket.
7503Data push failed. The field value returned by the JSON plug-in is not valid JSON. Check the value and retry.
7504Data push failed. The key for the field value returned by the JSON plug-in does not exist.
7505TairLDBExtractor plug-in configuration error. Failed to connect to Tair. Check that the configuration ID and namespace are valid.
7510Data push failed. An error occurred during field processing by the KeyValueExtractor plug-in.
7515Error occurred while executing the filter condition.
7520Data push failed. A single document exceeds the 1 MB size limit.
7523Data push failed. An error occurred during data processing by the StringConnector plug-in.
7524Geo field value out of range. Longitude must be 180 or less; latitude must be 90 or less.
7525Invalid format for the geo or range field.
7601Error occurred while running the task. Submit a ticket.
7602No data in the MaxCompute table. Make sure the table partitions contain data, then retry.
7603Error occurred while configuring the ApsaraDB RDS for MySQL or PolarDB for MySQL data source.
7605Taobao Distributed Data Layer (TDDL) configuration error.
7607No permissions on the MaxCompute table.
7608A source field does not exist in the MySQL data source.
7620Query timeout on the data source.
7803Data push failed. The document to update does not exist.
7805Data push failed. An error occurred during data processing by the HTML plug-in.
7807Field type and value mismatch. Type conversion failed; the field is set to its default value.
73106Number of data push operations exceeds the limit. Increase the quota.

Document-related internal errors (8000–8999)

Error codeDescription
8001Failed to save the error message.
8002Required parameters are missing.
8003Application does not exist.
8004One or more parameters are invalid.

Template-related errors (9000–9999)

Error codeDescription
9001Username is required.
9002Application name is required.
9003Invalid template name. The name can contain only letters, digits, and underscores (_).
9004Template name exceeds 30 characters.
9005Error occurred while querying template information.
9006Template name already exists.
9007Error occurred while inserting data into the template.
9008Invalid data.
9009Number of defined fields exceeds the system limit.
9010Field name is reserved.
9011Field name already exists.
9012Invalid index name. Index names can be up to 30 characters, can contain letters, digits, and underscores (_), must start with a letter, and cannot be of the SWS_TEXT or TEXT type for multi-value fields.
9013Arrays are not supported.
9014Primary keys are not supported.
9015Primary key is required.
9016Primary key is not unique.
9017Failed to update the information.
9018Failed to delete the information.
9019Number of search fields exceeds the limit. A maximum of four search fields can include multiple index fields.
9020A STRING or TEXT index field is used in more than one single-field search field.
9021Invalid index name. Index names can be up to 30 characters, can contain letters, digits, and underscores (_), and must start with a letter.
9022This table has an existing association.
9023The index name contains fields of different types, which is not allowed.
9100Internal error.
9101Number of fields exceeds the limit.
9102This data source is not in use.
9103Invalid secondary table connection.
9104Number of association levels exceeds the limit. The maximum is two levels.
9105The template to check does not exist.
9501Username is required.
9502Application name is required.
9519No template specified.
9600Internal error.
9902Invalid field type for the plug-in.
9999Service is not available for this domain name.

Data synchronization errors (10000 and above)

Error codeDescription
10001Failed to get TDDL information. The TDDL group key is not specified.
10002Failed to get the field, or the table does not exist.
10010Some data sources contain invalid data. Invalid data is skipped.
10011Failed to connect to Aggregator.
10012The application contains documents.
10013The application schema is not a custom schema.
10014Invalid data source type.
10100Failed to create the task. Some tasks are already in progress.
10101Application ID is required.
10102Invalid action.
10106Application ID is required.
10107Application ID is required.
10110Task is complete.
10112Number of documents exceeds the limit.
10201Failed to get the quota list.
10202Failed to update the quota.
10301One or more required parameters are missing or have an invalid format.
10302Invalid time parameter.
10303Data source not configured.
10304Quota for this table exceeds the limit.
10305Invalid Object Storage Service (OSS) parameter.
10306Invalid OSS bucket name.
10307Invalid OSS record type.
10308Logging is disabled for the OSS bucket.
10309Some tasks are already in progress.
10310Application is not running. Tasks cannot be created.
10311Invalid time range.
10312Application description exceeds the length limit. The description can be up to 600 characters.
10313Invalid OSS content format.
10314Failed to access the access control list (ACL) in the region where the OSS bucket resides.
10315Invalid endpoint for the OSS bucket.
10330Invalid data source parameters.
10350Failed to connect to the MaxCompute data source.
10351Error in the MaxCompute data source.
10400Invalid prefix for the OSS bucket name.
10450Field does not exist.