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 table did not stabilize
- dynamodb connection timeout
- could not unmarshal the value dynamodb
- ValidationException: Invalid KeyConditionExpression: Attribute name is a reserved keyword;
- ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string
- an expression attribute name used in the document path is not defined
- AWS DynamoDB errors ResourceNotFoundException
- missing required key 'key' in params dynamodb
- dynamodb atomic counter not working
- DynamoDB Invalid UpdateExpression Syntax Error Token
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- aws.dynamodb.converter.unmarshall not working
- ImportError: No module named boto3 (DynamoDB)
- dynamodb put item not working
- Error ValidationException: One or more parameter values were invalid: Type mismatch for key X expected: S actual: M
Tired of AWS Console? Try Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase