2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
Hi, DynamoDB expects the value of 'N' to be a string. You can read more about how DynamoDB handles numeric data in the Low-Level API docs here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.LowLevelAPI.html#Programming.LowLevelAPI.Numbers
If you use the following, the task should succeed:
{
"TableName": "Table_Name",
"Item": {
"orderId": "159844346634674",
"mail": "test@test.com",
"itemId": "876434",
"channel": "Retail",
"createdDate": "1234512345"
}
0
The error means that that there is no method to serialize the String in request to a number
Can you change the json to the one below and check again?
{ "TableName": "Table_Name", "Item": { "orderId": "159844346634674", "mail": "test@test.com", "itemId": "876434", "channel": "Retail", "createdDate": { "N": 1234512345 } }
respondido há 2 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há um ano