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)
- failed to list tables not authorized dynamodb
- DynamoDB ConditionalCheckFailedException
- dynamodb-admin command not found
- dynamodb net scan condition or not working
- requested resource not found aws dynamodb
- Error ValidationException: One or more parameter values were invalid: Type mismatch for key X expected: S actual: M
- sls dynamodb install not working
- dynamodb getItem() is not a function
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- could not load profile default dynamodb
- aws lambda dynamodb nodejs not working after few puts
- dynamodb items page not authorized with read access
- dynamodb list_append returns true but does not work
- DynamoDB Mapper Could Not Instantiate Class
Better DynamoDB experience.
Try 7-day free trial. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase