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!!!My bad I have to wrap the number with "
, ie
"N": "string"