Skip to content

[BUG] [Azure AI Search - Indexers failing when connected to CosmosDB with Hierarchical Partition Keys] #34298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
danielmacedo90 opened this issue Apr 28, 2025 · 0 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. data-plane question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Search Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@danielmacedo90
Copy link

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/search/data-plane/Azure.Search/preview/2025-05-01-preview/examples/SearchServiceCreateIndexer.json

API Spec version

2025-05-01-preview

Describe the bug

I have an Azure Search Service configured with CosmosDB as the data source. My CosmosDB collections use hierarchical partition keys.

DataSources, Indexes, and Indexers were correctly created and everything was working fine until April 11th, 2025.

After that date, without any configuration change in either the Search service or CosmosDB, all Indexer executions started failing.

The error shown is:

This subpartitioned container has more than 1 partition key path please use "PartitionKeyPaths"

Image

Previously, the Indexer worked without requiring explicit configuration for multiple partition key paths.

Expected behavior

The Indexer should continue working without manual specification of PartitionKeyPaths, just as it worked before April 11th, 2025.

Actual behavior

Indexer executions fail systematically with the error:

This subpartitioned container has more than 1 partition key path please use "PartitionKeyPaths"

No changes were made to my CosmosDB collections or Search service configurations before or after the issue started happening.

Reproduction Steps

  1. Create a CosmosDB container with hierarchical partition keys.
  2. Create a Data Source in Azure Search Service pointing to this CosmosDB container.
  3. Define an Index and an Indexer associated with the Data Source.
  4. Run the Indexer and it will fail. (note that before 2025-04-11 it ran successfully).

Environment

No response

@danielmacedo90 danielmacedo90 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Apr 28, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Apr 28, 2025
@v-jiaodi v-jiaodi added Search Service Attention Workflow: This issue is responsible by Azure service team. data-plane labels Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. data-plane question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Search Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants