Skip to main content

Error codes

API business error codes, causes, and troubleshooting

This page summarizes common business error codes and handling suggestions, grouped by error type. Error codes may be reused across endpoints; refer to each endpoint's documentation for exact trigger conditions, response structure, and how to determine the call result. The same code may correspond to multiple causes — use message to pinpoint the cause. The tables list typical scenarios and the response-body status_code, not the transport-layer HTTP status code; a scenario or message does not mean the code applies to only one endpoint. Dynamic identifiers, indices, and configuration values in the tables are examples; actual responses depend on the current request.

Parameter errors

codestatus_codeExample scenariomessage
InvalidParameter400Neither agent_id nor pipeline_id_list provides a valid valueAgent application not found.
InvalidParameter400The service is not a knowledge retrieval sceneAgent application scene must be search
InvalidParameter400Service configuration missingAgent application config is invalid
InvalidParameter400query exceeds the length limitParameter(query) exceeds the limit of (4500 bytes)
InvalidParameter400Vector retrieval lacks query text and has no usable image-search knowledge baseRequired parameter(query) missing or invalid, please check the request parameters. Query is required when the query is not a pure image search..
InvalidParameter400Wiki retrieval query missing or emptyRequired parameter(query) missing or invalid, please check the request parameters. Query is required for wiki retrieval..
InvalidParameter400images exceeds the item limitParameter(image_list) exceeds the limit of (10)
InvalidParameter400The number of knowledge bases to retrieve exceeds the limitParameter(pipeline_id_list) exceeds the limit of (15)
InvalidParameter400file_id_list exceeds the item limitParameter(file_id_list) exceeds the limit of (10)
InvalidParameter400Wiki retrieval with non-empty file_id_listRequired parameter(file_id_list) missing or invalid, please check the request parameters. file_id_list is not supported for wiki retrieval..
InvalidParameter400A kb_search_configs element's id missing or blankRequired parameter(kb_search_configs[0].id is required) missing or invalid, please check the request parameters.
InvalidParameter400id is not bound to the service's knowledge baseRequired parameter(kb not bound to agent: kb_xxx) missing or invalid, please check the request parameters.
InvalidParameter400Duplicate idRequired parameter(duplicate kb id in kb_search_configs: kb_xxx) missing or invalid, please check the request parameters.
InvalidParameter400Merged search_filters exceed the length limitRequired parameter(search_filters) missing or invalid, please check the request parameters. pipeline_configs.kb_xxx.search_filters total bytes must less than 80000.
InvalidParameter400Unstructured knowledge base tags exceeds the item limitRequired parameter(search_filters[0].tags) missing or invalid, please check the request parameters. pipeline_configs.kb_xxx.search_filters[0].tags array size must not exceed 1000.
InvalidParameter400Wiki retrieval uses an unsupported filter fieldRequired parameter(search_filters) missing or invalid, please check the request parameters. Wiki search_filters contains invalid key 'tags'. Allowed: [page_type, folder_id, category_path].
InvalidParameter400List Agents agent_scene missingRequired parameter(agent_scene is empty error) missing or invalid, please check the request parameters.
InvalidParameter400List Agents agent_scene invalidRequired parameter(agent_scene is invalid error) missing or invalid, please check the request parameters.
InvalidParameter400List Agents search_type invalidRequired parameter(search_type must be one of: chunk, wiki) missing or invalid, please check the request parameters.
InvalidParameter400Only one of knowledgeType and knowledgeScene provided when creating a knowledge baseInvalid parameter: knowledgeType and knowledgeScene cannot be empty
InvalidParameter400knowledgeType and structureType mismatch when creating a knowledge baseInvalid parameter: knowledgeType and structureType do not match
InvalidParameter400knowledgeScene does not belong to the knowledgeType when creating a knowledge baseInvalid parameter: knowledgeType and knowledgeScene do not match
InvalidParameter400Ultra-fast Q&A sinkType is not BUILT_INInvalid parameter: Lite Rag only supports BUILT_IN sink type
InvalidParameter400Multimodal embedding model missing or invalid for image Q&A or visual understanding scenesInvalid parameter: invalid multi embedding model
DocEmptyError400docIds empty or file IDs do not exist when creating and importing a knowledge basefetch empty doc list from data center.
InvalidParameter400wiki_auto_update missing or not true when enablingRequired parameter(wiki_auto_update) missing or invalid, please check the request parameters. must be true.
WikiConfigInvalid400The entire extraction group missing when enablingwiki_config parameter(extraction) is invalid: required
WikiConfigInvalid400synthesis_model_id missing or blank when enablingwiki_config parameter(synthesis_model_id) is invalid: required
WikiConfigInvalid400synthesis_model_id blank when modifying configurationwiki_config parameter(synthesis_model_id) is invalid: must not be blank
WikiConfigInvalid400synthesis_model_id not in the candidate listwiki_config parameter(synthesis_model_id) is invalid: not in the whitelist
WikiConfigInvalid400extraction_granularity value invalidwiki_config parameter(extraction_granularity) is invalid: must be one of focused / standard / exhaustive
WikiConfigInvalid400content_instructions exceeds the length limitwiki_config parameter(content_instructions) is invalid: length must not exceed 4000 characters
WikiConfigInvalid400extraction_instructions exceeds the length limitwiki_config parameter(extraction_instructions) is invalid: length must not exceed 4000 characters

Authentication errors

codestatus_codeExample scenariomessage
InvalidApiKey401API Key invalid or missingInvalid API-key provided.

Service activation and billing

codestatus_codeExample scenariomessage
ServiceStatusInvalid401Service not activated or billing abnormalindex service status is invalid. please check your bill info.
BailianIndexServiceNotOpen400Knowledge base service not activatedBailian Knowledge Base service is not activated.
BailianIndexServiceOutOfCredit400Knowledge base service in arrearsBailian Knowledge Base service is out of credit.

Agent service errors

codestatus_codeExample scenariomessage
RagAgentNotExist400No version specified and the service is not publishedAgent application not published.
RagAgentNotExist400The specified service version does not existAgent application not found.
RagAgentGroupNotExist400The Agent service does not existAgent application not found.

Knowledge base and Wiki status errors

codestatus_codeExample scenariomessage
PipelineNotExist400The directly retrieved knowledge base does not existPipeline not found: kb_xxx
PipelineNotExist400The retrieved knowledge base does not exist or is not in the current workspacepipeline not exist, pipeline_id: kb_xxx, workspace: workspace_xxx
PipelineMixed400Knowledge base configuration mismatchPipeline not correct, please check
PipelineMixed400Mixing public and private knowledge basespublic and private pipeline mixed
PipelineFrozen400The knowledge base is frozen or being unfrozenpipeline kb_xxx is frozen, please unfreeze or wait unfreezing finish
PipelineConfigNotExist400Knowledge base configuration does not existpipeline config not exist
WikiNotEnabled400Not all bound knowledge bases have Wiki enabledwiki is not enabled, pipeline_id: kb_xxx
WikiPreconditionNotMet400The knowledge base does not exist or does not belong to the current accountwiki operation is not allowed on pipeline(kb_xxx): pipeline does not exist or does not belong to the current user
WikiPreconditionNotMet400The knowledge base service is not yet provisioned; retry laterwiki operation is not allowed on pipeline(kb_xxx): pipeline service is not provisioned yet, please retry later
WikiPreconditionNotMet400The knowledge base was already deleted when enablingwiki operation is not allowed on pipeline(kb_xxx): pipeline does not exist or is deleted
WikiEditionNotSupported400The knowledge base is not enterprise when enablingwiki is only available for enterprise edition pipeline, pipeline(kb_xxx)
WikiSceneNotSupported400The knowledge scene is not document Q&A when enablingwiki is only available for basic document qa pipeline, pipeline(kb_xxx)
WikiOperationConflict409The knowledge base is being enabled/disabled, or another Wiki operation is in progressanother wiki operation on pipeline(kb_xxx) is in progress, please retry later

Server errors

The trailing part of the message for WikiProvisionFailed and WikiCollectionDeclareFailed varies with the failure cause; the table shows examples.
codestatus_codeExample scenariomessage
WikiConfigError500Wiki configuration missing or corruptedwiki config error, pipeline_id: kb_xxx, reason: wiki_config is null
WikiStatusReadFailed500Failed to read the Wiki enable statuswiki status read error, pipeline_id: kb_xxx
PipelineCacheReadError500Failed to read the knowledge base cachepipeline cache read error, cache_key:cache_key_xxx
PipelineEmbeddingError500Knowledge base embedding model configuration abnormalpipeline embedding config(config_xxx) error.
PipelineRerankError500Knowledge base rerank model configuration abnormalpipeline rerank config(config_xxx) error.
ConfigError500Retrieval configuration abnormalconfig error
SpResultError500The retrieval service returned no resultsp result error:(sp result is null).
SpServiceResultError400The retrieval service returned a failuresp result error:(%s).
WikiProvisionFailed500Internal service error during enablingwiki provision failed for pipeline(kb_xxx): wiki embedding dimension cannot be resolved, model: text-embedding-v4
WikiCollectionDeclareFailed500Internal service error during enablingwiki index collection declare failed for pipeline(kb_xxx): update sink_config failed, pipelineServiceId: 12345
SystemError500Internal service exceptionsystem error

Retry strategy

First determine the cause from the business code and message, then decide whether to retry based on the transport-layer HTTP status code.
Error typeRetrySuggestion
Parameter, authentication, or permission failureDo not auto-retryFix the parameters or credentials and confirm permissions before resending.
Resource missing, service not activated, or configuration abnormalDo not auto-retryCheck the resource, service status, and configuration; even if the business status_code is 500 for a configuration error, address the cause first.
Rate limitingRetryableIf the response includes Retry-After, wait as instructed; otherwise use backoff retry.
Temporary service exceptionLimited retrySuggested intervals of 1s, 2s, 4s with random jitter, up to 3 retries; contact support if failures persist.
Timeout or connection interruptionDepends on the requestRead-only requests can use backoff retry; for write requests, first confirm whether the operation succeeded to avoid duplicate creation or submission.
When troubleshooting or contacting support, provide the request_id to quickly locate the issue.