Closed marmyr closed 6 years ago
@marmyr thanks for reporting this. I think you are right. (This is a SDK issue). We will fix this for the next SDK release. For now if possible please use partition key with length less than 100 bytes.
Addressed in 2.1.0 release.
Made a PoC for it at https://github.com/marmyr/cosmos-bug-poc
But in short, this will reproduce the issue: ` private static class DummyObject { public final String partitionKey; public final String id; public final Integer ttl;
com.microsoft.azure.documentdb.DocumentClientException: Message: {"Errors":["PartitionKey extracted from document doesn't match the one specified in the header"]}