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 scan limit not working
- dynamodb system errors metric
- dynamodb could not load credentials from any providers
- dynamodb the table does not have the specified index
- error retrieving dynamodb table item serializationexception
- can't pickle thread.lock objects typeerror boto3 python dynamodb
- dynamodb could not be mapped for type string
- dynamodb list_append returns true but does not work
- could not load profile default dynamodb
- sls dynamodb install not working
- dynamodb atomic counter not working
- does not support attribute type arn aws dynamodb
- AWS DynamoDB CredentialsError: Missing credentials in config
- DynamoDB cannot do operations on a non-existent table
- comparison operator does not return all attributes dynamodb
Better DynamoDB experience.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase