boto.dynamodb2.exceptions.ValidationException: ValidationException: 400 Bad Request
{'__type': 'com.amazon.coral.validate#ValidationException', 'message': 'One or more parameter values were invalid: Type mismatch for key restoreid expected: S actual: M'}
I have a simple table test with id
All i am trying to do in insert id into the table with String data type. Primary partition key is id(string)
table = Table("test")
stringjson="{\"id\": {\"S\": \"4343\"}}"
item_data = json.loads(stringjson)
table.put_item(data=item_data)
I get the error mentioned above. Any suggestions?