Skip to content

Commit 664734f

Browse files
authored
Merge pull request #90426 from arv100kri/arv100kri/errors-and-warnings
[Azure Search] Add error descriptions for indexing failures when the target index could not be reached
2 parents 35c5e75 + 164e32c commit 664734f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

articles/search/cognitive-search-common-errors-warnings.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ ms.author: abmotley
1717
This article provides information and solutions to common errors and warnings you might encounter during AI enrichment in Azure Search.
1818

1919
## Errors
20-
Indexing stops when the error count exceeds ['maxfaileditems'](cognitive-search-concept-troubleshooting.md#tip-3-see-what-works-even-if-there-are-some-failures). The following sections can help you resolve errors, allowing indexing to continue.
20+
Indexing stops when the error count exceeds ['maxFailedItems'](cognitive-search-concept-troubleshooting.md#tip-3-see-what-works-even-if-there-are-some-failures).
21+
22+
If you want indexers to ignore these errors (and skip over "failed documents"), consider updating the `maxFailedItems` and `maxFailedItemsPerBatch` as described [here](https://docs.microsoft.com/rest/api/searchservice/create-indexer#general-parameters-for-all-indexers).
23+
24+
> [!NOTE]
25+
> Each failed document along with its document key (when available) will show up as an error in the indexer execution status. You can utilize the [index api](https://docs.microsoft.com/rest/api/searchservice/addupdate-or-delete-documents) to manually upload the documents at a later point if you have set the indexer to tolerate failures.
26+
27+
The following sections can help you resolve errors, allowing indexing to continue.
2128

2229
### Could not read document
2330
Indexer was unable to read the document from the data source. This can happen due to:
@@ -106,6 +113,18 @@ If you encounter a timeout error with a custom skill you have created, there are
106113

107114
The maximum value that you can set for the `timeout` parameter is 230 seconds. If your custom skill is unable to execute consistently within 230 seconds, you may consider reducing the `batchSize` of your custom skill so that it will have fewer documents to process within a single execution. If you have already set your `batchSize` to 1, you will need to rewrite the skill to be able to execute in under 230 seconds or otherwise split it into multiple custom skills so that the execution time for any single custom skill is a maximum of 230 seconds. Review the [custom skill documentation](cognitive-search-custom-skill-web-api.md) for more information.
108115

116+
### Could not '`MergeOrUpload`' | '`Delete`' document to the search index
117+
118+
The document was read and processed, but the indexer could not add it to the search index. This can happen due to:
119+
120+
| Reason | Example | Action |
121+
| --- | --- | --- |
122+
| A term in your document is larger than the [32 KB limit](search-limits-quotas-capacity.md#api-request-limits) | A field contains a term that is too large | You can avoid this restriction by ensuring the field is not configured as filterable, facetable, or sortable.
123+
| A document is larger than the [maximum api request size](search-limits-quotas-capacity.md#api-request-limits) | Document is too large to be indexed | [How to index large data sets](search-howto-large-index.md)
124+
| Trouble connecting to the target index (that persists after retries) because the service is under other load, such as querying or indexing. | Failed to establish connection to update index. Search service is under heavy load. | [Scale up your search service](search-capacity-planning.md)
125+
| Search service is being patched for service update, or is in the middle of a topology reconfiguration. | Failed to establish connection to update index. Search service is currently down/Search service is undergoing a transition. | Configure service with at least 3 replicas for 99.9% availability per [SLA documentation](https://azure.microsoft.com/support/legal/sla/search/v1_0/)
126+
| Failure in the underlying compute/networking resource (rare) | Failed to establish connection to update index. An unknown failure occurred. | Configure indexers to [run on a schedule](search-howto-schedule-indexers.md) to pick up from a failed state.
127+
109128
## Warnings
110129
Warnings do not stop indexing, but they do indicate conditions that could result in unexpected outcomes. Whether you take action or not depends on the data and your scenario.
111130

0 commit comments

Comments
 (0)