cosmosdb-server icon indicating copy to clipboard operation
cosmosdb-server copied to clipboard

Upsert responding with "Resource with specified id or name already exists."

Open maknesium opened this issue 5 years ago • 0 comments

Hi,

we try to integrate your project within our CI/CD build pipeline. One test uses an Upsert command (2nd) to update an existing entry, which was previously added with a first upsert command (1st).

When the 2nd Upsert statement is issued, we get this reply:

{HTTPFailure}Status code: 409 {"code":"Conflict","message":"Resource with specified id or name already exists."}

As far as I understand, Upsert should NEVER return an error like "already exists" since the entry should just be overwritten or inserted. The test runs fine when running it agains a local installation of the Azure CosmosDB Emulator (https://docs.microsoft.com/de-de/azure/cosmos-db/local-emulator).

I guess this is a bug?

maknesium avatar Jun 02 '20 10:06 maknesium