Category : "Uncategorized", Code : 72, Message : "Cannot use (or request) retryable writes with limit=0"

Kalkar, Maithili 0 Reputation points
2024-08-21T18:17:10.9133333+00:00

Getting Category : "Uncategorized", Code : 72, Message : "Cannot use (or request) retryable writes with limit=0" when using deleteMany. Is it not supported in cosmos db?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,615 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 15,206 Reputation points
    2024-08-22T05:56:21.24+00:00

    HI @Kalkar, Maithili ,

    Welcome to Microsoft Q&A forum.

    It looks like you are getting Cannot use (or request) retryable writes with limit=0" when using deleteMany in Azure Cosmos DB Mongo API.

    Also, could you please try without limit of that works for you?

    Note:

    Retryable writes does not support bulk unordered writes at this time. If you want to perform bulk writes with retryable writes enabled, perform bulk ordered writes.

    Refer: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/feature-support-42#retryable-writes

    The official MongoDB 3.6 and 4.0-compatible drivers disable retryable writes by default. To explicitly disable retryable writes, specify retryWrites=false in the connection string for the MongoDB cluster.

    Please share sample code and configuration details so that we can reproduce and assist.

    Thanks


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.