I am trying to configure cosmos db output in stream analytics job, getting error as This subpartitioned container has more than 1 partition key path please use `PartitionKeyPaths`, But there is no option to configure path in output settings

Rajesh Karuppiah 0 Reputation points
2025-02-11T05:26:33.39+00:00

I am trying to configure cosmos db output in stream analytics job, getting error as This subpartitioned container has more than 1 partition key path please use PartitionKeyPaths, But there is no option to configure path in output settings.

How this can be configured?

Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
379 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,768 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Chandra Boorla 8,870 Reputation points Microsoft Vendor
    2025-02-11T07:32:06.9433333+00:00

    Hi @Rajesh Karuppiah

    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    To resolve the issue, you are encountering with configuring Azure Cosmos DB output in your Stream Analytics job, you need to ensure that you're using the correct partition key configuration.

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

    The error message indicates that your subpartitioned container has more than one partition key path, which requires you to specify PartitionKeyPaths.

    But there is no option to configure path in output settings.

    Unfortunately, the output settings in Azure Stream Analytics do not provide an option to configure partition key paths directly. You may need to ensure that your Cosmos DB container is set up correctly with a single partition key path before connecting it to your Stream Analytics job.

    How this can be configured?

    If your container is already configured with multiple partition key paths, you will need to either modify the container to use a single partition key path or create a new container with the appropriate configuration.

    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    Thank you.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.