Skip to content

Commit b610c51

Browse files
authored
Merge pull request #122365 from asasidharanms/patch-1
Update troubleshoot-bad-request.md to add new error
2 parents 39c435b + 6a1166b commit b610c51

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/cosmos-db/nosql/troubleshoot-bad-request.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ A response with this error means you are executing an operation and passing a pa
4747
### Solution
4848
Send the partition key value parameter that matches the document property value.
4949

50+
## Numeric partition key value precision loss
51+
On this scenario, it's common to see errors like:
52+
53+
*The requested partition key is out of key range, possibly because of loss of precision of partition key value*
54+
55+
A response with this error is likely to be caused by an operation on a document with a numeric partition key whose value is outside what is supported by Azure Cosmos DB. See [Per-item limits](/azure/cosmos-db/concepts-limits#per-item-limits) for the maximum length of numeric property value.
56+
57+
### Solution
58+
Consider using type `string` for partition key if requiring precise numeric values.
59+
5060
## Next steps
5161
* [Diagnose and troubleshoot](troubleshoot-dotnet-sdk.md) issues when you use the Azure Cosmos DB .NET SDK.
5262
* Learn about performance guidelines for [.NET v3](performance-tips-dotnet-sdk-v3.md) and [.NET v2](performance-tips.md).

0 commit comments

Comments
 (0)