Error: dynamodb list_append returns true but does not work

Answered by Rafal Wilinski
What's Causing This Error
This is not exactly an error but can likely be caused due to a programmer-introduced bug. The list_append() function accepts two parameters: the initial list and the value to append.
If you provide an empty array to append to it, the function will still execute successfully, but nothing will change in the database, which might make you feel like the function does not work.
Solution: Here's How To Resolve It
To resolve the error, carefully provide the arguments for the function as shown below:
const params = {
TableName: 'test-table',
UpdateExpression: 'SET users = list_append(:users, newUser)'.
ExpressionAttributeValues: {
// append an array, as DynamoDB will join the arrays while it saves.
newUser: [{name: 'Jake'}]
}
}
Other Common DynamoDB Errors (with Solutions)
- DynamoDB Is Unsupported It Cannot Be Instantiated
- dynamodb value cannot be null. (parameter 'type')
- dynamodb condition does not exist
- aws.dynamodb.converter.unmarshall not working
- Unable to start DynamoDB Local process
- dynamodb-admin command not found
- dynamodb query is null
- ConfigError: Missing region in config
- dynamodb the parameter cannot be converted to a numeric value
- ImportError: No module named boto3 (DynamoDB)
- error retrieving dynamodb table item serializationexception
- dynamodb no range key value present
- sls dynamodb install not working
- DynamoDB ConditionalCheckFailedException
- DynamoDB cannot do operations on a non-existent table
Better DynamoDB experience.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase