DynamoDB - Key element does not match the schema

前端 未结 4 1992
予麋鹿
予麋鹿 2021-02-05 01:35

I\'m trying to update an Item in my Dynamodb Table +Users+. I have tried many different ways but I always received the same error message:

The provided k

4条回答
  •  一整个雨季
    2021-02-05 01:55

    My checklist when facing this issue:

    1. Check that the name and type of your key correspond to what you have in the database.
    2. Use corresponding attributes to make it explicit. E.g. use @DynamoDBHashKey(attributeName = "userId") in Java to indicate the partition key named userId.
    3. Ensure that only one field or getter marked as partition key in your class.

    Please, add more if you know in the comments.

提交回复
热议问题