Skip to content

VNext image not working with transactional batch #170

@trulsmp

Description

@trulsmp

Describe the bug
Running transactional batch request returns 500 internal server error.

Is this part of known limitations and same as bulk execution? https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-linux#limitations

To Reproduce

Example code used:

 var container = client.GetContainer("cosmosdb", "products");
 PartitionKey partitionKey = new("roadBikes");

var batch = container.CreateTransactionalBatch(partitionKey);

var bike = new Product
{
    id = "68719520766",
    category = "roadBikes",
};

batch.CreateItem(bike);

using TransactionalBatchResponse response = await batch.ExecuteAsync();

This gives error
DocumentClientException with status code InternalServerError, message: {"code":"InternalServerError","message":"invalid byte sequence for encoding \u0022UTF8\u0022: 0x81"}

Expected behavior
Items created in database as expected and response successful.

Desktop (please complete the following information):

  • OS: Mac OS M2
  • Version mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
  • SDK 3.47.0
  • SDK .NET

Metadata

Metadata

Assignees

Labels

bugcosmosEmulatorVnextPreviewissues raised for the vNext Linux based emulator (preview)

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions