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 error 500
- AWS Lambda DynamoDB Stream Error
- Unable to start DynamoDB Local process
- boto3 dynamodb unable to locate credentials
- DynamoDB Local Cannot Create Preexisting Table
- Float types are not supported. Use decimal types instead.
- dynamodb converter not found for enhancedtype
- ValidationException: Invalid KeyConditionExpression: Attribute name is a reserved keyword;
- dynamodb getItem() is not a function
- ImportError: No module named boto3 (DynamoDB)
- DynamoDB Duplicate Key Error
- DynamoDB Update Not Working
- dynamodb list_append returns true but does not work
- DynamoDB Expression Not Null
- dynamodb consistent reads are not supported on global secondary indexes
Login to the AWS Console less. Use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase