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 unable to execute http request
- could not transform a dynamodb amazonserviceexception to a compatible kinesis exception
- dynamodb cannot pickle '\_thread.lock' object
- dynamodb put function not working
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- dynamodb cannot assign requested address
- sls dynamodb install not working
- dynamodb query key condition not supported
- DynamoDB scan limit not working
- DynamoDB consistent read not working
- DynamoDB string set may not be empty
- DynamoDB FilterExpression not working
- DynamoDB Local Docker Not Working
- DynamoDB stream no records processed
- DynamoDB no attribute schema defined
Login to the AWS Console less. Use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase