1

AWS - One of the required keys was not given a value

On this topic they answered that i need to recreate the table but I don't know how to do that, in addition when I enter to me Dynamo shell I see that the table description is expecting the key values that I send so i'm confused.

this is my code in python

item = dict(
    uaid=hasher(uaid),
    data=data,
)

self.table.put_item(data=item, overwrite=True)
Community
  • 1
  • 1
Omar Herrera
  • 63
  • 2
  • 10

1 Answers1

1

When you created your table, you defined a partition or sort key on the table that is not present in your item above. You need to make sure the Primary Key attribute names are present and spelled correctly in item.

Alexander Patrikalakis
  • 5,054
  • 1
  • 30
  • 48
  • It appears that the values didn't go trough the function that's why it complains – Omar Herrera Mar 07 '17 at 18:22
  • Please paste the result of [`print self.table.key_schema`](http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Table.key_schema) here. I want to confirm the attribute names of your table schema. – Alexander Patrikalakis Mar 08 '17 at 02:51