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 validation error
- DynamoDB scan limit not working
- boto3 dynamodb client error
- dynamodb system errors metric
- localstack dynamodb not working
- dynamodb query is null
- DynamoDB type is not supported
- dynamodb system error cloudwatch
- error dynamodb streams must be enabled on the table
- dynamodb-admin is not recognized as an internal or external command
- dynamodb is abstract cannot be instantiated
- dynamodb value cannot be null. (parameter 'type')
- dynamodb item size limit error
- moto dynamodb not working
- DynamoDB transaction error
Tired of switching accounts and regions? Use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase