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 query is slow
- DynamoDB ConditionalCheckFailedException
- dynamodb docker unable to open database file
- sls dynamodb install not working
- AWS CLI DynamoDB Error Parsing Parameter
- failed to list tables not authorized dynamodb
- ImportError: No module named boto3 (DynamoDB)
- dynamodb cannot read properties of undefined
- dynamodb 1 validation error detected value
- aws.dynamodb.documentclient is not a constructor
- Float types are not supported. Use decimal types instead.
- why is the GSI dynamodb not showing item count
- DynamoDB scan filter expression not working
- DynamoDB Mapper Could Not Instantiate Class
- Could not connect to the endpoint URL https:dynamodb.singapore.amazonaws.com
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase