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 string set cannot be empty
- DynamoDB Query Limit Not Working
- dynamodb cannot pickle '\_thread.lock' object
- dynamodb text contents could not be decoded
- DynamoDB Local Missing Authentication Token
- dynamodb unable to execute http request
- dynamodb local unable to locate credentials
- dynamodb property projection cannot be empty
- dynamodb not a managed type
- DynamoDB Update Not Working
- localstack dynamodb not working
- dynamodb unable to parse base64 string
- DynamoDB - The Security Token Included In The Request Is Invalid
- the dynamodb service does not have version
- DynamoDB No Regionendpoint Or Serviceurl Configured
Tired of switching accounts and regions? Use Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase