Error: ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string
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 system errors metric
- lambda function not triggering from dynamodb
- DynamoDB ValidationException: Query condition missed key schema element
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- DynamoDB Local Missing Authentication Token
- dynamodb map template foreach not working
- DynamoDB Local Cannot Create Preexisting Table
- dynamodb mapper save not persisting
- dynamodb put function not working
- KMS Key Access Denied Error DynamoDB
- comparison operator does not return all attributes dynamodb
- Conditional Update Error DynamoDB
- Float types are not supported. Use decimal types instead.
- dynamodb 1 validation error detected value
- DynamoDB Update Not Working
Better DynamoDB experience.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase