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 no attribute schema defined
- dynamodb items page not authorized with read access
- DynamoDB Is Unsupported It Cannot Be Instantiated
- DynamoDB ConditionalCheckFailedException
- dynamodb list_append if_not_exists not working
- could not connect to the endpoint URL dynamodb
- dynamodb autoscaling not fast enough
- DynamoDB Local NoClassDefFoundError
- DynamoDB FilterExpression Not Working
- Boto3 DynamoDB KeyError
- could not load profile default dynamodb
- aws.dynamodb.converter.unmarshall not working
- dynamodb could not be mapped for type string
- DynamoDB transaction error
Dynobase is a Professional GUI Client for DynamoDB
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase