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 Network Error: self signed certificate in chain
- sls dynamodb install not working
- dynamodb cannot read property 'push' of undefined
- DynamoDB Error 413
- lambda function not triggering from dynamodb
- dynamodb autoscaling not fast enough
- DynamoDB Is Unsupported It Cannot Be Instantiated
- dynamodb the table does not have the specified index
- DynamoDB Get not found
- dynamodb query is not null
- dynamodb index not found
- dynamodb system error cloudwatch
- DynamoDB Missing Authentication Token
- dynamodb attribute does not exist
- dynamodb could not load credentials from any providers
Spend less time in the AWS console, use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase