dynamodb client.batch_get_item() fails in case keys contains duplicates #4135
Replies: 1 comment
-
Thanks for reaching out. This is the expected behavior. The Boto3 batch_get_item command involves a call to the underlying DynamoDB BatchGetItem API in which the
So And if you think the documentation could be improved here please use the Provide feedback at the bottom of the API documentation page to reach the appropriate team. Any updates to the API docs will be updated in Boto3 automatically. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Invoking batch_get_item with duplicate keys results in a ValidationException. I could not find a reference to this error either in the boto3 documentation or in the AWS Docs for BatchGetItem. Is this an expected behavior?
Expected Behavior
A ValidationException is not raised or the behavior is documented.
Current Behavior
Invoking batch_get_item with duplicate keys results in a ValidationException.
Reproduction Steps
The above snippet raises:
ClientError: An error occurred (ValidationException) when calling the BatchGetItem operation: Provided list of item keys contains duplicates
Possible Solution
The behavior can be detailed in the documentation.
Additional Information/Context
No response
SDK version used
1.34.76
Environment details (OS name and version, etc.)
macOS 14.4.1
Beta Was this translation helpful? Give feedback.
All reactions