Error: dynamodb ttl not deleting / erasing items

Answered by Rafal Wilinski
What's Causing This Error
You may run into this error for numerous reasons.
- TTL Disabled: The items will not get erased if TTL is disabled on the DynamoDB table.
- TTL attribute not defined: The TTL process ignores the item if the item does not contain the TTL attribute.
- Invalid TTL data type: If the item has the TTL attribute with a type other than Number, the TTL process ignores the item and does not delete it.
- Invalid TTL time format: If the item's TTL timestamp is not in UNIX Epoch Time Format, the TTL process will ignore and skip the item.
Solution - Here's How To Resolve It
There is no correct way to fix this error. However, you can try the following fixes and see which works for you.
- Enable TTL: Verify that TTL is enabled on the DynamoDB table.
- Verify TTL attribute: Ensure that the TTL attribute you put on your items is the same TTL attribute you defined when creating the table with TTL.
- Provide valid data: Ensure that the TTL attribute on the item has type
Numberand is in UNIX Epoch Time Format. Additionally, ensure that the TTL timestamp is not older than five years.
Other Common DynamoDB Errors (with Solutions)
- dynamodb no range key value present
- DynamoDB Update Not Working
- DynamoDB ConditionalCheckFailedException
- missing required key 'key' in params dynamodb
- dynamodb list_append if_not_exists not working
- dynamodb put item not working
- dynamodb table not exists
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- dynamodb does not accept empty set
- dynamodb-admin not working
- dynamodb unable to parse base64 string
- is not authorized to perform dynamodb:* on resource
- DynamoDB Network Error: self signed certificate in chain
- dynamodb table did not stabilize
- aws.dynamodb.converter.unmarshall not working
Login to the AWS Console less. Use Dynobase.
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase