Error: ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string

Answered by Rafal Wilinski
Solution
This error means that you’ve used query which some empty value and DynamoDB does not accept that. There are two possible ways of fixing:
- Find and fix empty value, replace with something meaningful or remove from query at all
- In DocumentClient constructor add convertEmptyValues param set to true:
const DynamoDB = new AWS.DynamoDB.DocumentClient({
convertEmptyValues: true
});
This will make DynamoDB SDK to automatically convert all empty values to null.
Other Common DynamoDB Errors (with Solutions)
- error dynamodb streams must be enabled on the table
- Unable to start DynamoDB Local process
- DynamoDB Is Unsupported It Cannot Be Instantiated
- could not unmarshal the value dynamodb
- AWS Lambda DynamoDB Stream Error
- accessdeniedexception dynamodb
- dynamodb cannot read property '0' of undefined
- AWS DynamoDB errors ResourceNotFoundException
- One or more parameter values were invalid: some AttributeDefinitions are not used
- dynamodb-admin command not found
- is not authorized to perform dynamodb:* on resource
- dynamodb list_append returns true but does not work
- DynamoDB - The Security Token Included In The Request Is Invalid
- DynamoDB Query Limit Not Working
Dynobase is a Professional GUI Client for DynamoDB
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase