I first noticed the problem when trying with the .NET SDK, but it's easily reproduceable with PowerShell.
Change your state store component configuration to the following (which is configured for the Cosmos DB emulator, but the same issue occurs with a regular Azure Cosmos DB instance):
Expected Behavior
When using a transaction to upsert to a Cosmos DB state store, the
partitionKey
field should not be blank.Actual Behavior
An example of the document once saved:
Steps to Reproduce the Problem
I first noticed the problem when trying with the .NET SDK, but it's easily reproduceable with PowerShell.
Change your state store component configuration to the following (which is configured for the Cosmos DB emulator, but the same issue occurs with a regular Azure Cosmos DB instance):
Start a Dapr side car:
Run the following:
I've also tried the following (I would actually expect the above to fail with the partition keys being different):
Release Note
RELEASE NOTE: FIX Bug in runtime.