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)
- DynamoDB - The Security Token Included In The Request Is Invalid
- dynamodb throughput error
- dynamodb the parameter cannot be converted to a numeric value
- dynamodb query is null
- DynamoDB No Regionendpoint Or Serviceurl Configured
- dynamodb-admin not working
- dynamodb scan missing values
- dynamodb update fail if not exists
- dynamodb the parameter cannot be converted to a numeric value NaN
- dynamodb unable to locate credentials
- dynamodb consistent reads are not supported on global secondary indexes
- dynamodb query is not null
- dynamodb local unable to open database file
- localstack dynamodb not working
- dynamodb is abstract cannot be instantiated
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase