Error: dynamodb does not accept empty set

Answered by Rafal Wilinski
What's Causing This Error
This used to be an error that occurred before 20th May 2020. However, if you are running into this error in 2022, it is most likely that you are running on an old SDK version, or you have not enabled empty value conversion in the Document Client.
Solution: Here's How To Resolve It
Firstly, upgrade your AWS SDK to the latest version.
npm i aws-sdk@latest
Hereafter, set the convertEmptyValues property to true when initializing an instance of Document Client, as shown below.
const aws = require('aws-sdk');
const documentClient = new aws.sdk.DynamoDb.DocumentClient({
convertEmptyValues: true
});
Other Common DynamoDB Errors (with Solutions)
- DynamoDB Duplicate Key Error
- DynamoDB - The Security Token Included In The Request Is Invalid
- dynamodb ttl not deleting / erasing items
- dynamodb 1 validation error detected value
- DynamoDB FilterExpression Not Working
- DynamoDB ConditionalCheckFailedException
- DynamoDB Key element does not match the schema
- DynamoDB No Provisioned Throughput specified for the table
- AWS DynamoDB CredentialsError: Missing credentials in config
- DynamoDB Delete Not Working
- an expression attribute name used in the document path is not defined
- dynamodb mapper save not persisting
- dynamodb docker unable to open database file
- dynamodb cannot convert undefined to object
- DynamoDB Query Limit Not Working
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase