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 FilterExpression not working
- aws.dynamodb.converter.unmarshall not working
- dynamodb atomic counter not working
- DynamoDB Local Missing Authentication Token
- could not lookup table in dynamodb
- dynamodb cannot read properties of undefined
- dynamodb connection timeout
- DynamoDB Local Docker Not Working
- DynamoDB ConditionalCheckFailedException
- a cell may contain a maximum of 30000 characters dynamodb
- DynamoDB failedbatch retry
- CORS Error DynamoDB
- DynamoDB - The Security Token Included In The Request Is Invalid
- dynamodb text contents could not be decoded
- failed to list tables not authorized dynamodb
Dynobase is a Professional GUI Client for DynamoDB
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase