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 index does not exist
- dynamodb could not connect to the endpoint url
- dynamodb scan missing values
- a cell may contain a maximum of 30000 characters dynamodb
- dynamodb put fail if exists
- dynamodb unable to execute http request
- dynamodb no range key value present
- dynamodb index not found
- dynamodb localhost error
- validationsettings are not supported for 'dynamodb' endpoint
- dynamodb consistent reads are not supported on global secondary indexes
- dynamodb number_value cannot be converted to string
- dynamodb throttle error code
- dynamodb unable to parse base64 string
- DynamoDB Expression Not Null
Better DynamoDB experience.
Try 7-day free trial. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase