से एक आइटम हो रही त्रुटि "प्रदान की प्रमुख तत्व स्कीमा से मेल नहीं खाता" इस तालिका में विभाजन जब DynamoDB
जब मैं एक आइटम प्राप्त करने की कोशिश की कुंजी है मेज से, यह इस त्रुटि
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the GetItem operation: The provided key element does not match the schema
यह मेरा कोड है प्रिंट
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('testDynamodb')
response = table.get_item(Key={'userId': "user2873"})
item = response['Item']
print(item)
कोई विचार? धन्यवाद।