aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
Jakub Holý 2020-03-11T14:01:08.129100Z

Hello! Any idea why a DynamoDB :PutItem fails with > DynamoDB operation failed: NUMBER_VALUE cannot be converted to String > (com.amazon.coral.service#SerializationException) ? I know the issue is with my autoDeleteAfter property for removing it fixes the problem. This is defined as the TTL property of the table and thus should be a number of epoch seconds. Adding it manually via AWS Console works. This is the request:

{:op :PutItem, :request {:TableName "offboarding", :Item {"offboardingId" {:S "3fb36a75-2957-44a0-9b16-f6cd4a565547"}, "d" {:S ":not-relevant"}, "autoDeleteAfter" {:N 1591574400}}, :ConditionExpression "attribute_not_exists(offboardingId)"}}
(I am using com.cognitect.aws/dynamodb "726.2.484.0", com.cognitect.aws/api "0.8.352") Thank you!!!

✅ 1
Jakub Holý 2020-03-11T14:27:52.129300Z

My bad I have to wrap the number with " , ie

"N": "string"

👍 1