Fork me on GitHub
Jakub Holý (HolyJak)14:03:08

Hello! Any idea why a DynamoDB :PutItem fails with > DynamoDB operation failed: NUMBER_VALUE cannot be converted to String > ( ? 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 "726.2.484.0", "0.8.352") Thank you!!!

Jakub Holý (HolyJak)14:03:52

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

"N": "string"

👍 4