This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
dynamodb client.batch_get_item() fails in case keys contains duplicates #4131
Labels
bug
This issue is a confirmed bug.
dynamodb
service-api
This issue is caused by the service API, not the SDK implementation.
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
The text was updated successfully, but these errors were encountered: