Error: dynamodb does not accept empty set
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 Delete Method Not Working For The First Time
- Unable to start DynamoDB Local process
- dynamodb can not resolve withkeyconditionexpression
- AWS Lambda DynamoDB Stream Error
- cognitoidentitycredentials is not authorized to perform dynamodb describetable
- AWS DynamoDB Provisioning Error
- failed to list tables not authorized dynamodb
- ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string
- could not unmarshal the value dynamodb
- AWS CLI DynamoDB Error Parsing Parameter
- AWS DynamoDB errors ResourceNotFoundException
- dynamodb list_append if_not_exists not working
- ImportError: No module named boto3 (DynamoDB)
- ProvisionedThroughputExceededException DynamoDB
- ConfigError: Missing region in config
Spend less time in the AWS console, use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase